File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
appstore/src/components/cfds-listing-logged-out Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,20 @@ const CFDsListingLoggedOut = observer(() => {
2828 </ Text >
2929 </ div >
3030 { combined_cfd_mt5_accounts . map ( ( existing_account , index : number ) => {
31+ // This is for backward compatibility
32+ // before BE change, EU market_type is financial. With BE change, EU market_type becomes synthetic
33+ const is_eu_standard = is_eu_user && existing_account . market_type !== 'financial' ;
34+
3135 const list_size = combined_cfd_mt5_accounts . length ;
36+
3237 return (
3338 < TradingAppCard
3439 action_type = { existing_account . action_type }
3540 availability = { selected_region }
3641 clickable_icon
37- icon = { existing_account . icon }
42+ icon = { is_eu_standard ? 'Derived' : existing_account . icon }
3843 sub_title = { existing_account ?. sub_title }
39- name = { existing_account ?. name ?? '' }
44+ name = { is_eu_standard ? 'Derived' : existing_account . name }
4045 short_code_and_region = { existing_account ?. short_code_and_region }
4146 platform = { existing_account . platform }
4247 description = { existing_account . description }
Original file line number Diff line number Diff line change @@ -859,10 +859,8 @@ export default class TradersHubStore extends BaseStore {
859859 ...this . combined_cfd_mt5_accounts ,
860860
861861 {
862- // This is for backward compatibility
863- // before BE change, EU market_type is financial. With BE change, EU market_type becomes synthetic
864- icon : this . is_eu_user && account . market_type === 'synthetic' ? 'Standard' : account . icon ,
865- name : this . is_eu_user && account . market_type === 'synthetic' ? 'Standard' : account . name ,
862+ icon : account . icon ,
863+ name : account . name ,
866864 platform : account . platform ,
867865 description : account . description ,
868866 key : `trading_app_card_${ account . name } ` ,
You can’t perform that action at this time.
0 commit comments