From af7f7654ab4c641b5e49ed37e41185744af7dfe2 Mon Sep 17 00:00:00 2001 From: Alex Ruzenhack Date: Mon, 8 Jul 2024 19:32:57 +0100 Subject: [PATCH] fix: cleaning of tokens and nano-contract registered after reload (#506) * fix: cleaning of tokens and nano-contract registered after reload --- src/reducers/reducer.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/reducers/reducer.js b/src/reducers/reducer.js index c30a472eb..d6df7ed8a 100644 --- a/src/reducers/reducer.js +++ b/src/reducers/reducer.js @@ -1298,13 +1298,20 @@ export const onExceptionCaptured = (state, { payload }) => { }; /** - * On wallet reload, tokens data will be reloaded as well. + * On wallet reload, tokens and nano contract data will be + * reloaded as well. + * + * Some flows can request a wallet reload such as: + * - Disable wallet service + * - Change network settings + * - Loose network connection */ export const onReloadWalletRequested = (state) => ({ ...state, tokensHistory: initialState.tokensHistory, tokensBalance: initialState.tokensBalance, loadHistoryStatus: initialState.loadHistoryStatus, + nanoContract: initialState.nanoContract, }); const onWalletReloading = (state) => ({