Fixed minor issue

This commit is contained in:
George Kalampokis 2020-04-09 16:53:26 +03:00
parent 36ccbb8d80
commit 417ee02087
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}
});
}
});