do nothing if the user wants to switch to haven [skip ci]

OmarHatem committed Apr 11, 2025 at 19:22 UTC 2f28ea3fb7883016b0fc598130824b58d58b14b5
1 file changed +3
lib/view_model/wallet_list/wallet_list_view_model.dart
+3
@@ -75,6 +75,9 @@ abstract class WalletListViewModelBase with Store {
75
76 @action
77 Future<void> loadWallet(WalletListItem walletItem) async {
78 + if (walletItem.type == WalletType.haven) {
79 + return;
80 + }
81 // bool switchingToSameWalletType = walletItem.type == _appStore.wallet?.type;
82 // await _appStore.wallet?.close(shouldCleanup: !switchingToSameWalletType);
83 final wallet = await _walletLoadingService.load(walletItem.type, walletItem.name);