• girafferz's avatar
    fix: correctly handle token.decimals when value is 0 (#2636) · 707544e2
    girafferz authored
    * fix: correctly handle token.decimals when value is 0
    
    Previously, using "Number(data.token.decimals) || 18" caused a valid token.decimals value of 0 to fall back to 18. This commit updates the logic to correctly use 0 when defined, ensuring accurate calculations for tokens with 0 decimals.
    
    * fix: use nullish coalescing for token decimals
    707544e2
AddressAddToWallet.tsx 4.44 KB