Skip to content

Commit

Permalink
fix: write await result to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jun 20, 2023
1 parent 4b0ac78 commit 0e59e28
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/utils/getNostrKeyOrigin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ export async function getNostrKeyOrigin(
}

// TODO: consider removing this at some point and just returning "unknown"
const legacyAccountDerivedPrivateKey = (
await msg.request("nostr/generatePrivateKey")
).privateKey;
const legacyAccountDerivedPrivateKeyResponse = await msg.request(
"nostr/generatePrivateKey"
);
const legacyAccountDerivedPrivateKey =
legacyAccountDerivedPrivateKeyResponse.privateKey;

return legacyAccountDerivedPrivateKey === nostrPrivateKey
? "legacy-account-derived"
Expand Down

0 comments on commit 0e59e28

Please sign in to comment.