Skip to content

Commit

Permalink
Merge pull request #3537 from EdgeApp/paul/fixWrongDenom
Browse files Browse the repository at this point in the history
Fix incorrect denom of crypto amount when in airplane mode
  • Loading branch information
thehobbit85 authored Jul 25, 2022
2 parents 744f2b3 + 975ab06 commit 3d67a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useCryptoText.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const useCryptoText = ({ displayDenomination, exchangeDenomination, fiatD
if (zeroString(nativeAmount)) return `${symbol ? symbol + ' ' : ''}0`
let maxConversionDecimals = DEFAULT_TRUNCATE_PRECISION

if (exchangeRate != null) {
if (exchangeRate != null && parseFloat(exchangeRate) > 0) {
const precisionAdjustValue = precisionAdjust({
primaryExchangeMultiplier: exchangeMultiplier,
secondaryExchangeMultiplier: fiatDenomination.multiplier,
Expand Down

0 comments on commit 3d67a2f

Please sign in to comment.