Browse Source

Add support for country codes to entity logo component

pull/7884/head
Thomas Kaul 4 weeks ago
parent
commit
c9ed06bd5b
  1. 4
      libs/common/src/lib/helper.ts

4
libs/common/src/lib/helper.ts

@ -66,8 +66,6 @@ export const DATE_FORMAT = 'yyyy-MM-dd';
export const DATE_FORMAT_MONTHLY = 'MMMM yyyy'; export const DATE_FORMAT_MONTHLY = 'MMMM yyyy';
export const DATE_FORMAT_YEARLY = 'yyyy'; export const DATE_FORMAT_YEARLY = 'yyyy';
const VALID_COUNTRY_CODES = new Set([...Object.keys(countries), 'EU']);
// Settings which describe the person looking at the screen rather than the // Settings which describe the person looking at the screen rather than the
// portfolio being looked at. They stay with the authenticated user while // portfolio being looked at. They stay with the authenticated user while
// impersonating. Every other setting follows the impersonated user. // impersonating. Every other setting follows the impersonated user.
@ -91,6 +89,8 @@ const USER_SETTINGS_KEYS_OF_AUTHENTICATED_USER: (keyof UserSettings)[] = [
'viewMode' 'viewMode'
]; ];
const VALID_COUNTRY_CODES = new Set([...Object.keys(countries), 'EU']);
export function applyAssetProfileOverrides<T extends Partial<SymbolProfile>>( export function applyAssetProfileOverrides<T extends Partial<SymbolProfile>>(
assetProfile: T, assetProfile: T,
assetProfileOverrides: AssetProfileOverrides | null assetProfileOverrides: AssetProfileOverrides | null

Loading…
Cancel
Save