FIX: Unrecognized wallet should not break import flow

This commit is contained in:
Marcos Rodriguez Velez 2024-08-09 08:00:43 -04:00
parent 67303c1721
commit 3127b7a45e

View File

@ -458,7 +458,9 @@ export class BlueApp {
case LegacyWallet.type: case LegacyWallet.type:
default: default:
unserializedWallet = LegacyWallet.fromJson(key) as unknown as LegacyWallet; unserializedWallet = LegacyWallet.fromJson(key) as unknown as LegacyWallet;
break; console.log('Unrecognized wallet. Importing as LegacyWallet...')
console.debug(tempObj)
continue;
} }
try { try {
@ -478,7 +480,7 @@ export class BlueApp {
if (realm) realm.close(); if (realm) realm.close();
return true; return true;
} else { } else {
return false; // failed loading data or loading/decryptin data return false; // failed loading data or loading/decrypting data
} }
} }