Merge pull request #7093 from BlueWallet/balancde

FIX: Total balance view would not update on currency change
This commit is contained in:
GLaDOS 2024-09-20 16:51:13 +00:00 committed by GitHub
commit a91b780f68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,7 +37,8 @@ const TotalWalletsBalance: React.FC = () => {
const formattedBalance = useMemo(
() => formatBalanceWithoutSuffix(Number(totalBalance), totalBalancePreferredUnit, true),
[totalBalance, totalBalancePreferredUnit],
// eslint-disable-next-line react-hooks/exhaustive-deps
[totalBalance, totalBalancePreferredUnit, preferredFiatCurrency],
);
const toolTipActions = useMemo(() => {