From cc2a00be5adf69cfbee78723f42be00c39b1b753 Mon Sep 17 00:00:00 2001 From: Karim Dalaize Date: Wed, 24 Jan 2024 15:55:01 +0100 Subject: [PATCH] =?UTF-8?q?[Updated]=C2=A0correct=20type=20for=20location.?= =?UTF-8?q?state.autoConnect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Deposit/Deposit.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Deposit/Deposit.tsx b/src/pages/Deposit/Deposit.tsx index 39849fc..b434cb4 100644 --- a/src/pages/Deposit/Deposit.tsx +++ b/src/pages/Deposit/Deposit.tsx @@ -71,7 +71,7 @@ const Deposit = () => { const { isDark } = useColorScheme(); const amountToDeposit = useMemo(() => { - const state = location.state as { amountToDeposit?: string }; + const state = location.state as { amountToDeposit?: number }; return state.amountToDeposit; }, [location]); @@ -156,7 +156,7 @@ const Deposit = () => { const transferForm = useFormik({ initialValues: { - amount: amountToDeposit || '', + amount: amountToDeposit?.toFixed(6) || '', }, validationSchema: yup.object().shape({ amount: yup @@ -979,7 +979,7 @@ const Deposit = () => { price={prices?.[denom || ''] || 0} lumWallet={lumWallet} otherWallets={otherWallets} - amountFromLocationState={Number(amountToDeposit)} + amountFromLocationState={amountToDeposit} /> {isShareStep && (