diff --git a/components/nav-top.tsx b/components/nav-top.tsx index 3428e67..0b94bc0 100644 --- a/components/nav-top.tsx +++ b/components/nav-top.tsx @@ -19,10 +19,7 @@ const TopNav = ({ }: { setFocusedPubkey: (value: string) => void; }) => { - const { - isHomeActive, - isProfileActive, - } = useNavigation(); + const { isHomeActive, isProfileActive } = useNavigation(); const router = useRouter(); const chatsContext = useContext(ChatsContext); diff --git a/components/utility-components/request-passphrase-modal.tsx b/components/utility-components/request-passphrase-modal.tsx index 58ab08f..4420874 100644 --- a/components/utility-components/request-passphrase-modal.tsx +++ b/components/utility-components/request-passphrase-modal.tsx @@ -8,9 +8,7 @@ import { Input, Button, } from "@nextui-org/react"; -import { - validPassphrase, -} from "../utility/nostr-helper-functions"; +import { validPassphrase } from "../utility/nostr-helper-functions"; import { SHOPSTRBUTTONCLASSNAMES } from "../utility/STATIC-VARIABLES"; import { useRouter } from "next/router"; diff --git a/components/wallet/mint-button.tsx b/components/wallet/mint-button.tsx index a0821f3..c507966 100644 --- a/components/wallet/mint-button.tsx +++ b/components/wallet/mint-button.tsx @@ -104,7 +104,6 @@ const MintButton = ({ passphrase }: { passphrase?: string }) => { numSats: number, hash: string, ) { - while (true) { try { const { proofs } = await wallet.requestTokens(numSats, hash); diff --git a/pages/settings/shop-settings.tsx b/pages/settings/shop-settings.tsx index 4e1ea45..e110e89 100644 --- a/pages/settings/shop-settings.tsx +++ b/pages/settings/shop-settings.tsx @@ -26,13 +26,7 @@ const ShopSettingsPage = () => { const { signInMethod } = getLocalStorageData(); const shopContext = useContext(ShopMapContext); - const { - handleSubmit, - control, - reset, - watch, - setValue, - } = useForm({ + const { handleSubmit, control, reset, watch, setValue } = useForm({ defaultValues: { banner: "", picture: "", diff --git a/pages/settings/user-profile.tsx b/pages/settings/user-profile.tsx index 3014ac3..c40e5e2 100644 --- a/pages/settings/user-profile.tsx +++ b/pages/settings/user-profile.tsx @@ -36,13 +36,7 @@ const UserProfilePage = () => { const { signInMethod, userNPub } = getLocalStorageData(); const profileContext = useContext(ProfileMapContext); - const { - handleSubmit, - control, - reset, - watch, - setValue, - } = useForm({ + const { handleSubmit, control, reset, watch, setValue } = useForm({ defaultValues: { banner: "", picture: "", @@ -89,11 +83,7 @@ const UserProfilePage = () => { const onSubmit = async (data: { [x: string]: string }) => { setIsUploadingProfile(true); - await createNostrProfileEvent( - userPubkey, - JSON.stringify(data), - passphrase, - ); + await createNostrProfileEvent(userPubkey, JSON.stringify(data), passphrase); profileContext.updateProfileData({ pubkey: userPubkey, content: data,