Skip to content

Commit

Permalink
fix broken testID for backups and condiiton that prevents manually ba…
Browse files Browse the repository at this point in the history
…cked up wallets from being marked as backed up
  • Loading branch information
walmat committed Dec 20, 2024
1 parent f1d3e7c commit 99578d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export const WalletsAndBackup = () => {
>
{!isBackedUp && (
<MenuItem.Label
testID={`${id}-not-backed-up`}
testID="not-backed-up"
color={'#FF584D'}
text={i18n.t(i18n.l.back_up.needs_backup.not_backed_up)}
/>
Expand Down
8 changes: 4 additions & 4 deletions src/screens/SettingsSheet/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ export const titleForBackupState: Partial<Record<CloudBackupState, string>> = {
};

export const isWalletBackedUpForCurrentAccount = ({ backupType, backedUp, backupFile }: Partial<RainbowWallet>) => {
if (!backupType || !backupFile) {
return false;
}

if (IS_IOS || backupType === WalletBackupTypes.manual) {
return backedUp;
}

if (!backupType || !backupFile) {
return false;
}

// NOTE: For Android, we also need to check if the current google account has the matching backup file
if (!backupFile) {
return false;
Expand Down

0 comments on commit 99578d9

Please sign in to comment.