Skip to content

Commit

Permalink
Merge pull request #120 from shontzu-deriv/shontzu/unable-create-mt5-…
Browse files Browse the repository at this point in the history
…account

[TRAH] shontzu/unable-create-mt5-account
  • Loading branch information
thisyahlen-deriv authored Apr 22, 2024
2 parents 285f655 + 691f9e6 commit a9fa5ee
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/cfd/screens/Jurisdiction/JurisdictionScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { twMerge } from 'tailwind-merge';

import { Jurisdiction } from '@cfd/constants';

import { useAvailableMT5Accounts, useMT5AccountsList, useQueryParams } from '@/hooks';
import { useAvailableMT5Accounts, useMT5AccountsList } from '@/hooks';
import { useCFDContext, useDynamicLeverageModalState } from '@/providers';

import { JurisdictionCard } from './JurisdictionCard';
Expand All @@ -14,7 +14,6 @@ type TJurisdictionScreenProps = {

export const JurisdictionScreen = ({ setIsCheckBoxChecked }: TJurisdictionScreenProps) => {
const { cfdState, setCfdState } = useCFDContext();
const { closeModal } = useQueryParams();
const { data: availableMT5Accounts } = useAvailableMT5Accounts();
const { data: mt5AccountsList } = useMT5AccountsList();
const { marketType, selectedJurisdiction } = cfdState;
Expand All @@ -38,12 +37,6 @@ export const JurisdictionScreen = ({ setIsCheckBoxChecked }: TJurisdictionScreen
setIsCheckBoxChecked(false);
}, [selectedJurisdiction, setIsCheckBoxChecked]);

useEffect(() => {
if (typeof closeModal === 'function') {
setCfdState({ selectedJurisdiction: '' });
}
}, [closeModal, setCfdState]);

return (
<div
className={twMerge(
Expand Down

0 comments on commit a9fa5ee

Please sign in to comment.