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

Jim/FEQ-322/cannot-convert-undefined-or-null-to-object #9048

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ const MultiplierAmountModal = observer(({ is_open, toggleModal }) => {
export default MultiplierAmountModal;

const TradeParamsMobile = observer(({ toggleModal }) => {
const { amount, currency, trade_stop_out, trade_store } = useTraderStore();
const trade_store = useTraderStore();
const { amount, currency, trade_stop_out } = trade_store;

const [stake_value, setStakeValue] = React.useState(amount);
const [commission, setCommission] = React.useState(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import { useTraderStore } from 'Stores/useTraderStores';
import { useIsMounted, WS } from '@deriv/shared';

const MultiplierOptions = observer(() => {
const { amount, multiplier, multiplier_range_list, onChange, toggleModal, trade_store } = useTraderStore();
const trade_store = useTraderStore();
const { amount, multiplier, multiplier_range_list, onChange, toggleModal } = trade_store;

const [commission, setCommission] = React.useState(null);
const [stop_out, setStopOut] = React.useState(null);
Expand Down