desktop xmr/wow single wallet opening bug fix

This commit is contained in:
julian 2023-01-25 17:42:20 -06:00
parent fb2d05eadd
commit ffda21f513

View file

@ -46,10 +46,15 @@ class _WalletTableState extends ConsumerState<WalletSummaryTable> {
VoidCallback? expandOverride;
if (providers.length == 1) {
expandOverride = () {
Navigator.of(context).pushNamed(
expandOverride = () async {
final manager = ref.read(providers.first);
if (manager.coin == Coin.monero ||
manager.coin == Coin.wownero) {
await manager.initializeExisting();
}
await Navigator.of(context).pushNamed(
DesktopWalletView.routeName,
arguments: ref.read(providers.first).walletId,
arguments: manager.walletId,
);
};
}