Skip to content

Commit

Permalink
chore: update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanjoshi914 committed Oct 17, 2024
1 parent cdc6f4b commit 366d410
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/screens/Home/DefaultView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ const DefaultView: FC<Props> = (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}`);
Expand Down

0 comments on commit 366d410

Please sign in to comment.