Skip to content

Commit

Permalink
Merge pull request #10 from likhith-deriv/likhith/something-not-right…
Browse files Browse the repository at this point in the history
…-error-in-manual-upload

likhith/resolved an error related to pending status
  • Loading branch information
akmal-deriv authored Sep 21, 2022
2 parents bbbb6ac + fc925e4 commit 5f74177
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/cfd/src/Containers/jurisdiction-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ type TJurisdictionModalProps = TCompareAccountsReusedProps & {
toggleCFDVerificationModal: () => void;
account_status: GetAccountStatus;
mt5_login_list: DetailsOfEachMT5Loginid[];
updateAccountStatus: () => void;
};

const JurisdictionModal = ({
Expand All @@ -74,6 +75,8 @@ const JurisdictionModal = ({
setJurisdictionSelectedShortcode,
toggleCFDVerificationModal,
account_status,
updateAccountStatus,

mt5_login_list,
}: TJurisdictionModalProps) => {
const [checked, setChecked] = React.useState(false);
Expand Down Expand Up @@ -117,8 +120,10 @@ const JurisdictionModal = ({
setJurisdictionSelectedShortcode('');
}
};

React.useEffect(() => {
if (is_jurisdiction_modal_visible) {
updateAccountStatus();
selectSVGJurisdiction();
if (!has_submitted_personal_details) {
let get_settings_response: GetSettings = {};
Expand Down Expand Up @@ -369,4 +374,5 @@ export default connect(({ modules, ui, client }: RootStore) => ({
setJurisdictionSelectedShortcode: modules.cfd.setJurisdictionSelectedShortcode,
account_status: client.account_status,
mt5_login_list: client.mt5_login_list,
updateAccountStatus: client.updateAccountStatus,
}))(JurisdictionModal);

0 comments on commit 5f74177

Please sign in to comment.