PS-1763 - handle undefined locale value that exists before a user sets their language (#3952)
This commit is contained in:
parent
07090e9382
commit
d4cc36060c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue