From 417ee0208737012bd6b2ed428d8eb47950f333bb Mon Sep 17 00:00:00 2001 From: George Kalampokis Date: Thu, 9 Apr 2020 16:53:26 +0300 Subject: [PATCH] Fixed minor issue --- dmp-frontend/src/app/core/services/culture/culture-service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dmp-frontend/src/app/core/services/culture/culture-service.ts b/dmp-frontend/src/app/core/services/culture/culture-service.ts index 32294c806..2dc07752b 100644 --- a/dmp-frontend/src/app/core/services/culture/culture-service.ts +++ b/dmp-frontend/src/app/core/services/culture/culture-service.ts @@ -68,7 +68,9 @@ export class CultureService { import(`@angular/common/locales/${locale}.js`).catch(reason => { this.logger.error('Could not load locale: ' + locale); }).then(selectedDefaultLocale => { - registerLocaleData(selectedDefaultLocale.default); + if (selectedDefaultLocale !== undefined) { + registerLocaleData(selectedDefaultLocale.default); + } }); } });