Skip to content

Commit

Permalink
chore: fix lint issies
Browse files Browse the repository at this point in the history
  • Loading branch information
ejwessel committed Sep 11, 2024
1 parent 761e820 commit e10c4a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/components/app/currency-input/currency-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ export default function CurrencyInput({
isSkeleton,
isMatchingUpstream,
}) {
const assetDecimals = !isNaN(Number(asset?.decimals)) ? Number(asset?.decimals) : NATIVE_CURRENCY_DECIMALS
const assetDecimals = isNaN(Number(asset?.decimals))
? NATIVE_CURRENCY_DECIMALS
: Number(asset?.decimals)

const preferredCurrency = useSelector(getNativeCurrency);
const secondaryCurrency = useSelector(getCurrentCurrency);
Expand Down

0 comments on commit e10c4a0

Please sign in to comment.