Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Pre release fixes #781

Merged
merged 2 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ const AmountsOverviewPanel: FC<AmountsOverviewPanelProps> = ({ 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'
Expand Down
2 changes: 1 addition & 1 deletion src/storage/global/globalSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down