Skip to content

Commit

Permalink
fix: card show conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanjoshi914 committed Feb 26, 2024
1 parent c80e30b commit 9a17548
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/extension/background-script/actions/accounts/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ const get = async (message: MessageAccountGet) => {
nostrEnabled: !!account.nostrPrivateKey,
hasMnemonic: !!account.mnemonic,
// for existing accounts consider mnemonic backup already done
isMnemonicBackupDone: account.isMnemonicBackupDone
? account.isMnemonicBackupDone
: true,
isMnemonicBackupDone:
account.isMnemonicBackupDone != undefined
? account.isMnemonicBackupDone
: true,
// Note: undefined (default for new accounts) it is also considered imported
hasImportedNostrKey: account.hasImportedNostrKey !== false,
bitcoinNetwork: account.bitcoinNetwork || "bitcoin",
Expand Down

0 comments on commit 9a17548

Please sign in to comment.