Skip to content

Commit

Permalink
remove personal-details-step-from-financial-svg
Browse files Browse the repository at this point in the history
  • Loading branch information
amina-deriv committed Aug 9, 2022
1 parent 280e927 commit 9210cb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
8 changes: 2 additions & 6 deletions packages/cfd/src/Containers/jurisdiction-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,14 @@ const JurisdictionModal = ({
type: account_type.type,
};

if (is_eu) {
if (is_eu && jurisdiction_selected_shortcode === 'maltainvest') {
if (poi_poa_verified) {
openPasswordModal(type_of_account);
} else {
toggleCFDVerificationModal();
}
} else if (jurisdiction_selected_shortcode === 'svg') {
if (account_type.type === 'financial' && poi_poa_verified && !has_submitted_personal_details) {
toggleCFDPersonalDetailsModal();
} else {
openPasswordModal(type_of_account);
}
openPasswordModal(type_of_account);
} else if (jurisdiction_selected_shortcode === 'vanuatu') {
if (need_poi_for_vanuatu) {
toggleCFDVerificationModal();
Expand Down
9 changes: 1 addition & 8 deletions packages/cfd/src/Containers/mt5-compare-table-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,9 @@ const DMT5CompareModalContent = ({

switch (item.action) {
case 'synthetic_svg':
setJurisdictionSelectedShortcode('svg');
openPasswordModal(type_of_account);
break;
case 'financial_svg':
setJurisdictionSelectedShortcode('svg');
if (poi_poa_verified && !has_submitted_personal_details) {
toggleCFDPersonalDetailsModal();
} else {
openPasswordModal(type_of_account);
}
openPasswordModal(type_of_account);
break;
case 'synthetic_bvi':
case 'financial_bvi':
Expand Down

0 comments on commit 9210cb2

Please sign in to comment.