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 && (
@@ -92,7 +92,7 @@ const BarrierFields = ({ formName, handleAmountChange }) => {
)} - {['endsinout', 'staysinout'].includes(formName) && + {['endsinout', 'staysinout'].includes(form_name) && barrier_data?.show_barrier_highlow && ( <>
diff --git a/src/javascript/app/pages/trade/starttime.js b/src/javascript/app/pages/trade/starttime.js index 52fa1f1a766..6b73af22f3f 100644 --- a/src/javascript/app/pages/trade/starttime.js +++ b/src/javascript/app/pages/trade/starttime.js @@ -58,7 +58,7 @@ const StartDates = (() => { if (start_dates.has_spot) { option = createElement('option', { value: 'now', text: localize('Now') }); start_dates_data.has_now = 1; - start_dates_data.options.push({ text: 'Now', value: 'now' }); + start_dates_data.options.push({ text: localize('Now'), value: 'now' }); fragment.appendChild(option); has_now = 1; } else {