mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
PS-1763 - handle undefined locale value that exists before a user sets their language (#3952)
This commit is contained in:
@@ -171,7 +171,7 @@ export class SettingsComponent implements OnInit {
|
|||||||
this.showAlwaysShowDock = this.platformUtilsService.getDevice() === DeviceType.MacOsDesktop;
|
this.showAlwaysShowDock = this.platformUtilsService.getDevice() === DeviceType.MacOsDesktop;
|
||||||
this.openAtLogin = await this.stateService.getOpenAtLogin();
|
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();
|
this.theme = await this.stateService.getTheme();
|
||||||
|
|
||||||
if ((await this.stateService.getUserId()) == null) {
|
if ((await this.stateService.getUserId()) == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user