Skip to content

Commit

Permalink
fix(account-page): cow balance issue (#2824)
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadV91 authored Jul 10, 2023
1 parent 15b9246 commit 863f010
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/Account/Balances.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ export default function Profile() {
const vCowToken = V_COW[chainId]
// Cow balance
const cow =
useTokenBalance(account || undefined, chainId ? cowToken : undefined) || supportedChainId(chainId)
? CurrencyAmount.fromRawAmount(cowToken, 0)
: null
useTokenBalance(account || undefined, chainId ? cowToken : undefined) ||
(supportedChainId(chainId) ? CurrencyAmount.fromRawAmount(cowToken, 0) : null)

// vCow balance values
const { unvested, vested, total, isLoading: isVCowLoading } = useVCowData()
Expand Down

0 comments on commit 863f010

Please sign in to comment.