From 8b7c67fc7433f2bdf508508bdc40eccc6ca3566f Mon Sep 17 00:00:00 2001 From: OmarHatem Date: Wed, 24 Sep 2025 09:31:32 +0300 Subject: [PATCH] minor fix [skip ci] --- lib/src/screens/new_wallet/new_wallet_page.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/src/screens/new_wallet/new_wallet_page.dart b/lib/src/screens/new_wallet/new_wallet_page.dart index 5a793009f..6240a68a8 100644 --- a/lib/src/screens/new_wallet/new_wallet_page.dart +++ b/lib/src/screens/new_wallet/new_wallet_page.dart @@ -359,7 +359,11 @@ class _WalletNameFormState extends State { alertTitle: '', alertContent: S.of(context).wallet_name_exists, buttonText: S.of(context).ok, - buttonAction: () => Navigator.of(context).pop()); + buttonAction: () { + if (Navigator.of(context).canPop()) { + Navigator.of(context).pop(); + } + }); }); } else { await _walletNewVM.create(