Skip to content

Commit

Permalink
fix review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lendihop committed Dec 17, 2024
1 parent 8fa29b7 commit fa65c56
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ export const InfoCard = memo<Props>(({ rate, inputCurrencyCode, outputCurrencyCo
{rate ? (
<>
<span>{`1 ${inputCurrencyCode} ≈ `}</span>
<Money cryptoDecimals={2} smallFractionFont={false} tooltipPlacement="bottom">
<Money
cryptoDecimals={String(rate).length > 12 ? 2 : 6}
smallFractionFont={false}
tooltipPlacement="bottom"
>
{rate}
</Money>{' '}
{outputCurrencyCode}
Expand Down

0 comments on commit fa65c56

Please sign in to comment.