From db743c7978cbe4ded745b9d60949e0807f45ca93 Mon Sep 17 00:00:00 2001 From: prince-deriv Date: Fri, 16 Aug 2024 12:11:03 +0400 Subject: [PATCH] chore: refactor fix --- src/javascript/app/pages/form/barrier-fields.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/javascript/app/pages/form/barrier-fields.jsx b/src/javascript/app/pages/form/barrier-fields.jsx index e7e901d0f4b..ffd0335c7db 100644 --- a/src/javascript/app/pages/form/barrier-fields.jsx +++ b/src/javascript/app/pages/form/barrier-fields.jsx @@ -12,7 +12,7 @@ import Defaults, { PARAM_NAMES } from '../trade/defaults.js'; const BarrierFields = ({ form_name, handleAmountChange }) => { const [barrierData, setBarrierData] = useState(); - const hasBarrierChange = useBarrierChange(); + const has_barrier_change = useBarrierChange(); const barrier = Defaults.get(PARAM_NAMES.BARRIER); const barrier_high = Defaults.get(PARAM_NAMES.BARRIER_HIGH); @@ -23,7 +23,7 @@ const BarrierFields = ({ form_name, handleAmountChange }) => { ...old_data, ...dataManager.getAllTrades(), })); - }, [hasBarrierChange]); + }, [has_barrier_change]); if (!barrierData) return null;