routing bugfix

This commit is contained in:
julian 2022-09-19 14:25:55 -06:00
parent b0c179666c
commit 1d3955cc97

View file

@ -94,8 +94,20 @@ class _VerifyRecoveryPhraseViewState
.addWallet(walletId: _manager.walletId, manager: _manager);
if (mounted) {
unawaited(Navigator.of(context)
.pushNamedAndRemoveUntil(HomeView.routeName, (route) => false));
if (isDesktop) {
Navigator.of(context).popUntil(
ModalRoute.withName(
DesktopHomeView.routeName,
),
);
} else {
unawaited(
Navigator.of(context).pushNamedAndRemoveUntil(
HomeView.routeName,
(route) => false,
),
);
}
}
unawaited(showFloatingFlushBar(