From 2e4ec981baaff730233144eb98a292d248ea69c5 Mon Sep 17 00:00:00 2001 From: MSGhais Date: Wed, 21 Aug 2024 01:01:19 +0200 Subject: [PATCH] check undefined --- packages/afk_nostr_sdk/src/hooks/useNip07Extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/afk_nostr_sdk/src/hooks/useNip07Extension.ts b/packages/afk_nostr_sdk/src/hooks/useNip07Extension.ts index 2c306e0da..e265a6e32 100644 --- a/packages/afk_nostr_sdk/src/hooks/useNip07Extension.ts +++ b/packages/afk_nostr_sdk/src/hooks/useNip07Extension.ts @@ -9,7 +9,7 @@ export const useNip07Extension = (options?: UseRootProfilesOptions) => { const {ndk, nip07Signer} = useNostrContext(); const {setAuth, setPublicKey, setIsExtensionConnect} = useAuth(); const getPublicKey = async () => { - if (typeof window != 'undefined') { + if (typeof window !== 'undefined') { const pubkey = await window.nostr.getPublicKey(); const created_at = new Date().getTime(); nip07Signer?.user().then(async (user) => {