Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix: Go back to wallet page on tx done
Browse files Browse the repository at this point in the history
  • Loading branch information
reasje committed Oct 24, 2023
1 parent 14b3068 commit 1a99d4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@ class SendCryptoPresenter extends CompletePresenter<SendCryptoState> {
}
return res;
} else if (TransactionProcessType.done == type) {
BottomFlowDialog.of(context!).close();
navigator!.pop();
Future.delayed(const Duration(milliseconds: 200), () {
navigator?.popUntil((route) {
return route.settings.name?.contains('WalletPage') ?? false;
});
});
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ class _TransactionInfoState extends State<TransactionInfo> {
}
} else {
widget.onTap(processType);
Navigator.of(context).pop(true);
}
},
);
Expand Down

0 comments on commit 1a99d4e

Please sign in to comment.