mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-18 21:35:21 +01:00
FIX: Unrecognized wallet should not break import flow
This commit is contained in:
parent
67303c1721
commit
3127b7a45e
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user