From 5f467741b14dd2a1236888b0b1969f6f8fe80ff4 Mon Sep 17 00:00:00 2001 From: gzuuus Date: Tue, 23 Jan 2024 21:27:16 +0000 Subject: [PATCH] login fixed --- src/lib/utils/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils/helpers.ts b/src/lib/utils/helpers.ts index de1fb01..9c5e386 100644 --- a/src/lib/utils/helpers.ts +++ b/src/lib/utils/helpers.ts @@ -414,7 +414,7 @@ export async function NDKlogin(): Promise { const followsArray = Array.from(followsSet as Set); currentUserFollows.set(followsArray.map((user) => user.pubkey)); const userProfile = await user.fetchProfile(); - await isNip05Valid(userProfile?.nip05, userProfile?.npub); + await isNip05Valid(userProfile?.nip05, user.npub); const nip05ValidStore = getStore(isNip05ValidStore); localStore.update((currentState) => { return {