1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 21:33:27 +00:00

PS-1763 - handle undefined locale value that exists before a user sets their language (#3952)

This commit is contained in:
dgoodman-bw
2022-11-03 16:02:35 -07:00
committed by GitHub
parent 07090e9382
commit d4cc36060c

View File

@@ -171,7 +171,7 @@ export class SettingsComponent implements OnInit {
this.showAlwaysShowDock = this.platformUtilsService.getDevice() === DeviceType.MacOsDesktop;
this.openAtLogin = await this.stateService.getOpenAtLogin();
this.locale = await this.stateService.getLocale();
this.locale = (await this.stateService.getLocale()) ?? null;
this.theme = await this.stateService.getTheme();
if ((await this.stateService.getUserId()) == null) {