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

This commit is contained in:
OmarHatem 2025-04-11 19:22:27 +02:00
parent 37ede52ea6
commit 2f28ea3fb7

View file

@ -75,6 +75,9 @@ abstract class WalletListViewModelBase with Store {
@action @action
Future<void> loadWallet(WalletListItem walletItem) async { Future<void> loadWallet(WalletListItem walletItem) async {
if (walletItem.type == WalletType.haven) {
return;
}
// bool switchingToSameWalletType = walletItem.type == _appStore.wallet?.type; // bool switchingToSameWalletType = walletItem.type == _appStore.wallet?.type;
// await _appStore.wallet?.close(shouldCleanup: !switchingToSameWalletType); // await _appStore.wallet?.close(shouldCleanup: !switchingToSameWalletType);
final wallet = await _walletLoadingService.load(walletItem.type, walletItem.name); final wallet = await _walletLoadingService.load(walletItem.type, walletItem.name);