From 515e6efce1e4650755d17029f98a3be8c55fb0d3 Mon Sep 17 00:00:00 2001 From: Angelo Reale <12191809+angeloreale@users.noreply.github.com> Date: Fri, 30 Aug 2024 16:04:16 +0100 Subject: [PATCH] ar(fix) DPCP-121: Locale Parsing --- lib/model/decorators/hypnos-public-decorator.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/model/decorators/hypnos-public-decorator.ts b/lib/model/decorators/hypnos-public-decorator.ts index 5b8dfe94..22a00c37 100644 --- a/lib/model/decorators/hypnos-public-decorator.ts +++ b/lib/model/decorators/hypnos-public-decorator.ts @@ -6,7 +6,8 @@ import type { ICard } from '@dreampipcom/oneiros'; /* private */ const decorateListing = (listing: Record, uMeta: any, locale?: string): ICard => { const coerceStringLocale = (localeString: any) => { - return localeString[locale?.split('-')[1]] || localeString[locale?.split('-')[0]]; + const strArr; + return strArr[[1]] || strArr[locale?.split('-')[0]]; }; const decd: ICard = { id: `${listing.id}`,