Skip to content

Commit

Permalink
Add workaround for an account with no balance
Browse files Browse the repository at this point in the history
  • Loading branch information
buberdds committed Feb 19, 2024
1 parent e07175b commit 9c5edb1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ const BalanceDistributionContent: FC<BalanceDistributionContentProps> = ({ accou
...getPreciseNumberFormat(account.total),
ticker: account.ticker,
})
if (Number(account.total) === 0) {
return <>{/* TODO: we need designs for this case */}</>
}

const data = [
{
label: t('account.available'),
Expand Down

0 comments on commit 9c5edb1

Please sign in to comment.