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}`,