mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-25 11:03:55 +01:00
CW-1143-Fix-Ledger-wallets-getting-corruption-popups (#2447)
* fix: handle errors differently if it is a ledger wallet * fix: improve ledger error code regex
This commit is contained in:
@@ -74,7 +74,7 @@ class WalletLoadingService {
|
||||
} catch (error, stack) {
|
||||
await ExceptionHandler.resetLastPopupDate();
|
||||
final isLedgerError = await ExceptionHandler.isLedgerError(error);
|
||||
if (isLedgerError) rethrow;
|
||||
if (isLedgerError || requireHardwareWalletConnection(type, name)) rethrow;
|
||||
await ExceptionHandler.onError(FlutterErrorDetails(exception: error, stack: stack));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user