From 06d95bb22458fe84acf50956c1af7dd7cbbac409 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Mon, 2 May 2022 15:32:44 +0200 Subject: [PATCH] [PS-381] Fix locale being empty when not configuring a language (#1631) --- src/app/settings/options.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/settings/options.component.ts b/src/app/settings/options.component.ts index 79068240cc..ccfd9d330d 100644 --- a/src/app/settings/options.component.ts +++ b/src/app/settings/options.component.ts @@ -74,7 +74,7 @@ export class OptionsComponent implements OnInit { this.enableGravatars = await this.stateService.getEnableGravitars(); this.enableFullWidth = await this.stateService.getEnableFullWidth(); - this.locale = await this.stateService.getLocale(); + this.locale = (await this.stateService.getLocale()) ?? null; this.startingLocale = this.locale; this.theme = await this.stateService.getTheme();