From b14bc3c6643ebc473f1edfd5993c96cfdfcd3d12 Mon Sep 17 00:00:00 2001 From: Rustam Goygov Date: Tue, 17 Dec 2024 21:21:41 -0800 Subject: [PATCH] Format --- src/fund/components/FundCardAmountInput.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fund/components/FundCardAmountInput.tsx b/src/fund/components/FundCardAmountInput.tsx index e8648612c9..18f65c78d4 100644 --- a/src/fund/components/FundCardAmountInput.tsx +++ b/src/fund/components/FundCardAmountInput.tsx @@ -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);