xmr/wow loading fix when opened from fav card

This commit is contained in:
julian 2023-02-13 13:26:29 -06:00
parent a42e5278a9
commit 4b5386236a

View file

@ -105,14 +105,18 @@ class _FavoriteCardState extends ConsumerState<FavoriteCard> {
),
),
child: GestureDetector(
onTap: () {
onTap: () async {
if (coin == Coin.monero || coin == Coin.wownero) {
await ref.read(managerProvider).initializeExisting();
}
if (mounted) {
if (Util.isDesktop) {
Navigator.of(context).pushNamed(
await Navigator.of(context).pushNamed(
DesktopWalletView.routeName,
arguments: walletId,
);
} else {
Navigator.of(context).pushNamed(
await Navigator.of(context).pushNamed(
WalletView.routeName,
arguments: Tuple2(
walletId,
@ -120,6 +124,7 @@ class _FavoriteCardState extends ConsumerState<FavoriteCard> {
),
);
}
}
},
child: SizedBox(
width: widget.width,