minor fix [skip ci]

OmarHatem committed Sep 24, 2025 at 09:31 UTC 8b7c67fc7433f2bdf508508bdc40eccc6ca3566f
1 file changed +5 -1
lib/src/screens/new_wallet/new_wallet_page.dart
+5 -1
@@ -359,7 +359,11 @@ class _WalletNameFormState extends State<WalletNameForm> {
359 alertTitle: '',
360 alertContent: S.of(context).wallet_name_exists,
361 buttonText: S.of(context).ok,
362 - buttonAction: () => Navigator.of(context).pop());
362 + buttonAction: () {
363 + if (Navigator.of(context).canPop()) {
364 + Navigator.of(context).pop();
365 + }
366 + });
367 });
368 } else {
369 await _walletNewVM.create(