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;