@@ -20,7 +20,7 @@ import PlatformLoader from 'Components/pre-loader/platform-loader';
20
20
import CompareAccount from 'Components/compare-account' ;
21
21
import CFDsDescription from 'Components/elements/cfds-description' ;
22
22
import { getHasDivider } from 'Constants/utils' ;
23
- import { useMT5SVGEligibleToMigrate } from '@deriv/hooks' ;
23
+ import { useMT5SVGEligibleToMigrate , useGetDefaultMT5Jurisdiction } from '@deriv/hooks' ;
24
24
import './cfds-listing.scss' ;
25
25
26
26
const MigrationBanner = makeLazyLoader (
@@ -67,7 +67,7 @@ const CFDsListing = observer(() => {
67
67
financial_restricted_countries,
68
68
} = traders_hub ;
69
69
70
- const { setAccountType, toggleCTraderTransferModal, setProduct } = cfd ;
70
+ const { setAccountType, toggleCTraderTransferModal, setProduct, setJurisdictionSelectedShortcode } = cfd ;
71
71
const {
72
72
account_status,
73
73
is_landing_company_loaded,
@@ -88,6 +88,7 @@ const CFDsListing = observer(() => {
88
88
is_idv_revoked,
89
89
} = getAuthenticationStatusInfo ( account_status ) ;
90
90
91
+ const default_jurisdiction = useGetDefaultMT5Jurisdiction ( ) ;
91
92
const { has_svg_accounts_to_migrate } = useMT5SVGEligibleToMigrate ( ) ;
92
93
const getAuthStatus = ( status_list : boolean [ ] ) => status_list . some ( status => status ) ;
93
94
@@ -254,6 +255,7 @@ const CFDsListing = observer(() => {
254
255
} ) ;
255
256
setProduct ( existing_account . product ) ;
256
257
setAppstorePlatform ( existing_account . platform ) ;
258
+ setJurisdictionSelectedShortcode ( default_jurisdiction ) ;
257
259
getAccount ( ) ;
258
260
}
259
261
} else if ( existing_account . action_type === 'multi-action' ) {
@@ -418,6 +420,7 @@ const CFDsListing = observer(() => {
418
420
</ Text >
419
421
</ div >
420
422
</ React . Fragment >
423
+ { /* dxtrade */ }
421
424
{ is_landing_company_loaded ? (
422
425
available_dxtrade_accounts ?. map ( account => {
423
426
const existing_accounts = getExistingAccounts ( account . platform , account . market_type ) ;
0 commit comments