From afe784d91fdf9ebebb69cd120a75abe82cd94ba5 Mon Sep 17 00:00:00 2001 From: Danh Date: Thu, 19 Oct 2023 13:56:17 +0700 Subject: [PATCH] rename var --- src/components/swapv2/LimitOrder/LimitOrderForm.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/swapv2/LimitOrder/LimitOrderForm.tsx b/src/components/swapv2/LimitOrder/LimitOrderForm.tsx index 0adf9fa171..eebe0340fe 100644 --- a/src/components/swapv2/LimitOrder/LimitOrderForm.tsx +++ b/src/components/swapv2/LimitOrder/LimitOrderForm.tsx @@ -145,7 +145,7 @@ const LimitOrderForm = forwardRef(function LimitOrd removeOrderNeedCreated, resetState, setOrderEditing, - setInputValue, + setInputValue: setInputValueGlobal, } = useLimitActionHandlers() const { ordersNeedCreated, inputAmount: inputAmountGlobal } = useLimitState() @@ -535,9 +535,9 @@ const LimitOrderForm = forwardRef(function LimitOrd useEffect(() => { if (inputAmountGlobal) { onSetInput(inputAmountGlobal) - setInputValue('') + setInputValueGlobal('') } - }, [inputAmountGlobal, onSetInput, setInputValue]) // when redux state change, ex: type and swap + }, [inputAmountGlobal, onSetInput, setInputValueGlobal]) // when redux state change, ex: type and swap useEffect(() => { return () => {