diff --git a/src/pages/UnlockedWallet/OverviewPage/AmountsOverviewPanel.tsx b/src/pages/UnlockedWallet/OverviewPage/AmountsOverviewPanel.tsx index a89dde151..0a50b0349 100644 --- a/src/pages/UnlockedWallet/OverviewPage/AmountsOverviewPanel.tsx +++ b/src/pages/UnlockedWallet/OverviewPage/AmountsOverviewPanel.tsx @@ -83,8 +83,7 @@ const AmountsOverviewPanel: FC = ({ className, addres const totalBalance = addresses.reduce((acc, address) => acc + BigInt(address.balance), BigInt(0)) const totalAvailableBalance = addresses.reduce((acc, address) => acc + getAvailableBalance(address), BigInt(0)) const totalLockedBalance = addresses.reduce((acc, address) => acc + BigInt(address.lockedBalance), BigInt(0)) - const totalAmountWorth = - price !== undefined && !stateUninitialized ? calculateAmountWorth(totalBalance, price) : undefined + const totalAmountWorth = price !== undefined ? calculateAmountWorth(totalBalance, price) : undefined const balanceInFiat = worth ?? totalAmountWorth const isOnline = network.status === 'online' diff --git a/src/storage/global/globalSlice.ts b/src/storage/global/globalSlice.ts index 94af2a70e..3e72868b2 100644 --- a/src/storage/global/globalSlice.ts +++ b/src/storage/global/globalSlice.ts @@ -137,7 +137,7 @@ const toggleLoading = (state: AppState, toggle: boolean, enableLoading?: boolean if (enableLoading !== false) state.loading = toggle } -const resetState = ({ theme, wallets }: AppState) => ({ ...initialState, wallets, theme }) +const resetState = ({ theme }: AppState) => ({ ...initialState, wallets: WalletStorage.list(), theme }) const refreshWalletList = (state: AppState) => { state.wallets = WalletStorage.list()