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(