Skip to content

Commit

Permalink
fix: update formName prop in barrier-fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuzhy-Deriv committed Aug 9, 2024
1 parent 9d53f1e commit a5cafb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/javascript/app/pages/form/barrier-fields.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -68,7 +68,7 @@ const BarrierFields = ({ formName, handleAmountChange }) => {

return (
<>
{['touchnotouch', 'higherlower'].includes(formName) &&
{['touchnotouch', 'higherlower'].includes(form_name) &&
barrier_data?.show_barrier && (
<div className='quill-form-row'>
<div className={`form_field ${!barrier_data?.isOffset ? 'field-pb' : ''}`}>
Expand All @@ -92,7 +92,7 @@ const BarrierFields = ({ formName, handleAmountChange }) => {
</div>
)}

{['endsinout', 'staysinout'].includes(formName) &&
{['endsinout', 'staysinout'].includes(form_name) &&
barrier_data?.show_barrier_highlow && (
<>
<div className='quill-form-row'>
Expand Down

0 comments on commit a5cafb1

Please sign in to comment.