From 366d4102cdafd6e6bddde72b9ec4aef5e78e5efb Mon Sep 17 00:00:00 2001 From: pavanjoshi914 Date: Thu, 17 Oct 2024 12:14:12 +0530 Subject: [PATCH] chore: update variable name --- src/app/screens/Home/DefaultView/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/screens/Home/DefaultView/index.tsx b/src/app/screens/Home/DefaultView/index.tsx index f3c156b1be..fda3b30d99 100644 --- a/src/app/screens/Home/DefaultView/index.tsx +++ b/src/app/screens/Home/DefaultView/index.tsx @@ -79,13 +79,13 @@ const DefaultView: FC = (props) => { useEffect(() => { (async () => { try { - const account = await api.getAccount(); - const nostrPrivateKey = await api.nostr.getPrivateKey(account.id); + const userAccount = await api.getAccount(); + const nostrPrivateKey = await api.nostr.getPrivateKey(userAccount.id); setNostrPublicKey( nostrPrivateKey ? await nostr.derivePublicKey(nostrPrivateKey) : "" ); - setCurrentAccount(account); + setCurrentAccount(userAccount); } catch (e) { console.error(e); if (e instanceof Error) toast.error(`Error: ${e.message}`);