diff --git a/src/app/utils/getNostrKeyOrigin.ts b/src/app/utils/getNostrKeyOrigin.ts index aa115f19ea..662ae35e37 100644 --- a/src/app/utils/getNostrKeyOrigin.ts +++ b/src/app/utils/getNostrKeyOrigin.ts @@ -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"