diff --git a/src/pages/login/index.tsx b/src/pages/login/index.tsx index 9539ee7..7bf8b80 100644 --- a/src/pages/login/index.tsx +++ b/src/pages/login/index.tsx @@ -107,7 +107,7 @@ export const Login = () => { try { privateKey = nip19.decode(nsec).data as Uint8Array - } catch(err) { + } catch (err) { toast.error(`Error decoding the nsec. ${err}`) } } @@ -328,14 +328,15 @@ export const Login = () => { // const privateKey = nip19.decode(inputValue).data as Uint8Array const privateKey = hexToBytes(inputValue) const publickey = getPublicKey(privateKey) - - if (publickey) return loginWithNsec(privateKey) - } catch(err) { + if (publickey) return loginWithNsec(privateKey) + } catch (err) { console.warn('err', err) } - toast.error('Invalid format, please use: private key (hex), nsec..., bunker:// or nip05 format.') + toast.error( + 'Invalid format, please use: private key (hex), nsec..., bunker:// or nip05 format.' + ) return } diff --git a/src/pages/profile/index.tsx b/src/pages/profile/index.tsx index caa5387..146dda8 100644 --- a/src/pages/profile/index.tsx +++ b/src/pages/profile/index.tsx @@ -208,7 +208,7 @@ export const ProfilePage = () => { - + { > {profileMetadata && ( @@ -240,11 +240,19 @@ export const ProfilePage = () => { {profileMetadata?.nip05 && - textElementWithCopyIcon(profileMetadata.nip05, undefined, 15)} + textElementWithCopyIcon( + profileMetadata.nip05, + undefined, + 15 + )} {profileMetadata?.lud16 && - textElementWithCopyIcon(profileMetadata.lud16, undefined, 15)} + textElementWithCopyIcon( + profileMetadata.lud16, + undefined, + 15 + )}