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(() => {
28
28
</ Text >
29
29
</ div >
30
30
{ 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
+
31
35
const list_size = combined_cfd_mt5_accounts . length ;
36
+
32
37
return (
33
38
< TradingAppCard
34
39
action_type = { existing_account . action_type }
35
40
availability = { selected_region }
36
41
clickable_icon
37
- icon = { existing_account . icon }
42
+ icon = { is_eu_standard ? 'Derived' : existing_account . icon }
38
43
sub_title = { existing_account ?. sub_title }
39
- name = { existing_account ?. name ?? '' }
44
+ name = { is_eu_standard ? 'Derived' : existing_account . name }
40
45
short_code_and_region = { existing_account ?. short_code_and_region }
41
46
platform = { existing_account . platform }
42
47
description = { existing_account . description }
Original file line number Diff line number Diff line change @@ -859,10 +859,8 @@ export default class TradersHubStore extends BaseStore {
859
859
...this . combined_cfd_mt5_accounts ,
860
860
861
861
{
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 ,
866
864
platform : account . platform ,
867
865
description : account . description ,
868
866
key : `trading_app_card_${ account . name } ` ,
You can’t perform that action at this time.
0 commit comments