pop buy to wallets as well as exchange

This commit is contained in:
julian 2023-01-31 18:14:06 -06:00
parent a00340b464
commit e5464a9c3c

View file

@ -50,7 +50,7 @@ class _HomeViewState extends ConsumerState<HomeView> {
Future<bool> _onWillPop() async {
// go to home view when tapping back on the main exchange view
if (ref.read(homeViewPageIndexStateProvider.state).state == 1) {
if (ref.read(homeViewPageIndexStateProvider.state).state != 0) {
ref.read(homeViewPageIndexStateProvider.state).state = 0;
return false;
}