mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 23:08:07 +01:00
Merge pull request #5703 from BlueWallet/fix-delete-faulty-wallets
FIX: unable to delete faulty wallet (rel #5661)
This commit is contained in:
commit
ab9ac9a8a2
1 changed files with 10 additions and 1 deletions
|
@ -506,7 +506,16 @@ const WalletDetails = () => {
|
|||
return (
|
||||
<>
|
||||
<Text style={[styles.textLabel1, stylesHook.textLabel1]}>{loc.wallets.details_address.toLowerCase()}</Text>
|
||||
<Text style={[styles.textValue, stylesHook.textValue]}>{wallet.getAddress()}</Text>
|
||||
<Text style={[styles.textValue, stylesHook.textValue]}>
|
||||
{(() => {
|
||||
// gracefully handling faulty wallets, so at least user has an option to delete the wallet
|
||||
try {
|
||||
return wallet.getAddress();
|
||||
} catch (error) {
|
||||
return error.message;
|
||||
}
|
||||
})()}
|
||||
</Text>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue