From 2a48d645aec2a6ab229134097e335dc09b5141e4 Mon Sep 17 00:00:00 2001 From: Justin Ehrenhofer Date: Thu, 2 Mar 2023 17:47:10 -0600 Subject: [PATCH] Revert part of the Haven change --- lib/reactions/on_current_wallet_change.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/reactions/on_current_wallet_change.dart b/lib/reactions/on_current_wallet_change.dart index 89b096d86..e44973c5f 100644 --- a/lib/reactions/on_current_wallet_change.dart +++ b/lib/reactions/on_current_wallet_change.dart @@ -66,6 +66,10 @@ void startCurrentWalletChangeReaction(AppStore appStore, PreferencesKey.currentWalletType, serializeToInt(wallet.type)); await wallet.connectToNode(node: node); + if (wallet.type == WalletType.haven) { + await updateHavenRate(fiatConversionStore); + } + if (wallet.walletInfo.address?.isEmpty ?? true) { wallet.walletInfo.address = wallet.walletAddresses.address;