Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Fix for eth/xdai balance symbol issue (#2378)
Browse files Browse the repository at this point in the history
* Fix for eth/xdai balance symbol issue

* Update balance title also
  • Loading branch information
nenadV91 authored Feb 3, 2022
1 parent ed734b7 commit 3dd6b62
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/custom/pages/Claim/InvestmentFlow/InvestOption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,12 @@ export default function InvestOption({ claim, optionIndex, openModal, closeModal
<label>
<span>
<b>Balance:</b>
<i title={balance && `${formatMax(balance, balance.currency.decimals)} ${balance.currency.symbol}`}>
{formatSmartLocaleAware(balance, AMOUNT_PRECISION) || 0} {balance?.currency?.symbol}
<i
title={
balance && `${formatMax(balance, balance.currency.decimals)} ${currencyAmount?.currency?.symbol}`
}
>
{formatSmartLocaleAware(balance, AMOUNT_PRECISION) || 0} {currencyAmount?.currency?.symbol}
</i>
{/* Button should use the max possible amount the user can invest, considering their balance + max investment allowed */}
{!noBalance && isSelfClaiming && (
Expand Down

0 comments on commit 3dd6b62

Please sign in to comment.