Fix db getting deleted on iOS (#2736)

* Fix db getting deleted on iOS

* Fix db getting deleted on iOS and add a patch for users who updated

* remove prints [skip ci]
This commit is contained in:
Omar Hatem
2025-12-15 04:49:51 +02:00
committed by GitHub
parent 1844405a43
commit aea855d023
11 changed files with 36 additions and 15 deletions
@@ -360,7 +360,7 @@ class _WalletNameFormState extends State<WalletNameForm> {
alertContent: S.of(context).wallet_name_exists,
buttonText: S.of(context).ok,
buttonAction: () {
if (Navigator.of(context).canPop()) {
if (mounted && Navigator.of(context).canPop()) {
Navigator.of(context).pop();
}
});
@@ -17,7 +17,6 @@ class WalletRestoreChooseDerivationPage extends BasePage {
);
final WalletRestoreChooseDerivationViewModel walletRestoreChooseDerivationViewModel;
DerivationType derivationType = DerivationType.unknown;
@override
Widget body(BuildContext context) {