From 249b7ec47db24e0a41d0a758856c8b89065f03e9 Mon Sep 17 00:00:00 2001 From: Nuzhy-Deriv <125249108+Nuzhy-Deriv@users.noreply.github.com> Date: Fri, 9 Aug 2024 13:52:21 +0800 Subject: [PATCH] Nuzhy/QUILL-1934/barrier fields issue (#784) * fix: update formName prop in barrier-fields * fix: translte now in starttime --- src/javascript/app/pages/form/barrier-fields.jsx | 6 +++--- src/javascript/app/pages/trade/starttime.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 && (