diff --git a/src/javascript/app/pages/form/barrier-fields.jsx b/src/javascript/app/pages/form/barrier-fields.jsx index bb9606e7453..14ecf3a1bea 100644 --- a/src/javascript/app/pages/form/barrier-fields.jsx +++ b/src/javascript/app/pages/form/barrier-fields.jsx @@ -10,7 +10,7 @@ import dataManager from '../../common/data_manager.js'; import { localize } from '../../../_common/localize.js'; import Defaults, { PARAM_NAMES } from '../trade/defaults.js'; -const BarrierFields = ({ formName, handleAmountChange }) => { +const BarrierFields = ({ form_name, handleAmountChange }) => { const [barrierData, setBarrierData] = useState(); const hasBarrierChange = useBarrierChange(); @@ -68,7 +68,7 @@ const BarrierFields = ({ formName, handleAmountChange }) => { return ( <> - {['touchnotouch', 'higherlower'].includes(formName) && + {['touchnotouch', 'higherlower'].includes(form_name) && barrier_data?.show_barrier && (