minor fixes [skip ci]

This commit is contained in:
Omar
2026-06-23 17:39:57 +02:00
parent 2764b46bfe
commit cda9d09ead
2 changed files with 7 additions and 3 deletions
@@ -161,7 +161,7 @@ abstract class LedgerViewModelBase extends HardwareWalletViewModel with Store {
allowChangeWallet: true,
isReconnect: true,
onConnectDevice: (context, ledgerVM) async {
if (context.mounted) {
if (context.mounted && Navigator.of(context).canPop()) {
Navigator.of(context).pop();
}
},