Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuzhy/QUILL-1934/barrier fields issue #784

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading