Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ui/components/multichain/multi-srp/srp-list/srp-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ export const SrpCard = ({
button_type: 'srp_select',
},
});
keyringId && onActionComplete(keyringId, shouldTriggerBackup);
if (keyringId) {
onActionComplete(keyringId, shouldTriggerBackup);
}
}}
className="select-srp__container"
marginBottom={3}
Expand Down
4 changes: 2 additions & 2 deletions ui/components/multichain/multi-srp/srp-list/srp-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const SrpList = ({
getIsPrimarySeedPhraseBackedUp,
);

const walletIdsFromStore = useSelector((state) =>
const entropyWalletIds = useSelector((state) =>
getWalletIdsByType(state, AccountWalletType.Entropy),
);

Expand All @@ -33,7 +33,7 @@ export const SrpList = ({
padding={isSettingsPage ? 0 : 4}
data-testid="srp-list"
>
{walletIdsFromStore.map((walletId, index) => {
{entropyWalletIds.map((walletId, index) => {
// We only consider the first(primary) keyring for the backup reminder.
const shouldTriggerBackup = !isPrimarySeedPhraseBackedUp && index === 0;

Expand Down
Loading