Skip to content

Commit

Permalink
fix 0 token balance
Browse files Browse the repository at this point in the history
  • Loading branch information
bergeron committed Oct 28, 2024
1 parent 42e2aa4 commit 40d7d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/ducks/send/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -2670,7 +2670,7 @@ export function updateSendAsset(

if (details.standard === TokenStandard.ERC20) {
asset.balance =
details.balance && typeof details.decimals === 'number'
details.balance && details.decimals !== undefined
? addHexPrefix(
calcTokenAmount(details.balance, details.decimals).toString(16),
)
Expand Down

0 comments on commit 40d7d3f

Please sign in to comment.