diff --git a/src/javascript/app/pages/form/barrier-fields.jsx b/src/javascript/app/pages/form/barrier-fields.jsx index 864f95cf101..efa16c4c2fb 100644 --- a/src/javascript/app/pages/form/barrier-fields.jsx +++ b/src/javascript/app/pages/form/barrier-fields.jsx @@ -69,13 +69,12 @@ const BarrierFields = ({ formName, handleAmountChange }) => { return ( <> {['touchnotouch', 'higherlower'].includes(formName) && - barrier_data?.show_barrier && - barrier && ( + barrier_data?.show_barrier && (
{ )} {['endsinout', 'staysinout'].includes(formName) && - barrier_data?.show_barrier_highlow && - barrier_high && barrier_low && ( + barrier_data?.show_barrier_highlow && ( <>
{
{ // to increase speed, do not set values when form is still loading if (!isVisible(getElementById('trading_init_progress'))) { sessionStorage.setItem(key, value); - triggerSessionChange(); + if (!['barrier', 'barrier_high', 'barrier_low'].includes(key)) { + triggerSessionChange(); + } updateURL(); } }