Skip to content

Commit

Permalink
check undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
MSghais committed Aug 20, 2024
1 parent 3b9923f commit 2e4ec98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/afk_nostr_sdk/src/hooks/useNip07Extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 2e4ec98

Please sign in to comment.