diff --git a/libs/common/src/lib/helper.ts b/libs/common/src/lib/helper.ts index f73b98e5cb..6e50911322 100644 --- a/libs/common/src/lib/helper.ts +++ b/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_YEARLY = 'yyyy'; -const VALID_COUNTRY_CODES = new Set([...Object.keys(countries), 'EU']); - // Settings which describe the person looking at the screen rather than the // portfolio being looked at. They stay with the authenticated user while // impersonating. Every other setting follows the impersonated user. @@ -91,6 +89,8 @@ const USER_SETTINGS_KEYS_OF_AUTHENTICATED_USER: (keyof UserSettings)[] = [ 'viewMode' ]; +const VALID_COUNTRY_CODES = new Set([...Object.keys(countries), 'EU']); + export function applyAssetProfileOverrides>( assetProfile: T, assetProfileOverrides: AssetProfileOverrides | null