Skip to content

Commit

Permalink
chore: refactor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-deriv committed Aug 16, 2024
1 parent 1ecfa47 commit db743c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/javascript/app/pages/form/barrier-fields.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Defaults, { PARAM_NAMES } from '../trade/defaults.js';

const BarrierFields = ({ form_name, handleAmountChange }) => {
const [barrierData, setBarrierData] = useState();
const hasBarrierChange = useBarrierChange();
const has_barrier_change = useBarrierChange();

const barrier = Defaults.get(PARAM_NAMES.BARRIER);
const barrier_high = Defaults.get(PARAM_NAMES.BARRIER_HIGH);
Expand All @@ -23,7 +23,7 @@ const BarrierFields = ({ form_name, handleAmountChange }) => {
...old_data,
...dataManager.getAllTrades(),
}));
}, [hasBarrierChange]);
}, [has_barrier_change]);

if (!barrierData) return null;

Expand Down

0 comments on commit db743c7

Please sign in to comment.