|
|
@ -663,9 +663,6 @@ export class DataProviderService { |
|
|
|
// Only allow symbols with supported currency
|
|
|
|
return currency ? true : false; |
|
|
|
}) |
|
|
|
.sort(({ name: name1 }, { name: name2 }) => { |
|
|
|
return name1?.toLowerCase().localeCompare(name2?.toLowerCase()); |
|
|
|
}) |
|
|
|
.map((lookupItem) => { |
|
|
|
if (this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION')) { |
|
|
|
if (user.subscription.type === 'Premium') { |
|
|
@ -679,7 +676,21 @@ export class DataProviderService { |
|
|
|
lookupItem.dataProviderInfo.isPremium = false; |
|
|
|
} |
|
|
|
|
|
|
|
if ( |
|
|
|
lookupItem.assetSubClass === 'CRYPTOCURRENCY' && |
|
|
|
user?.Settings?.settings.isExperimentalFeatures |
|
|
|
) { |
|
|
|
// Remove DEFAULT_CURRENCY at the end of cryptocurrency names
|
|
|
|
lookupItem.name = lookupItem.name.replace( |
|
|
|
new RegExp(` ${DEFAULT_CURRENCY}$`), |
|
|
|
'' |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
return lookupItem; |
|
|
|
}) |
|
|
|
.sort(({ name: name1 }, { name: name2 }) => { |
|
|
|
return name1?.toLowerCase().localeCompare(name2?.toLowerCase()); |
|
|
|
}); |
|
|
|
|
|
|
|
return { |
|
|
|