[PS-381] Fix locale being empty when not configuring a language (#1631)

This commit is contained in:
Oscar Hinton 2022-05-02 15:32:44 +02:00 committed by GitHub
parent 446f2027b4
commit 06d95bb224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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