Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
rustam-cb committed Dec 18, 2024
1 parent 9032c5e commit b14bc3c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/fund/components/FundCardAmountInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ export const FundCardAmountInput = ({
Number(value) * Number(exchangeRate),
);

const resultCryptoValue = limitToDecimalPlaces(calculatedCryptoValue, 8);
setCryptoValue(
calculatedCryptoValue === '0' ? '' : resultCryptoValue,
const resultCryptoValue = limitToDecimalPlaces(
calculatedCryptoValue,
8,
);
setCryptoValue(calculatedCryptoValue === '0' ? '' : resultCryptoValue);
} else {
setCryptoValue(value);

Expand Down

0 comments on commit b14bc3c

Please sign in to comment.