diff --git a/UI/Web/src/app/_services/account.service.ts b/UI/Web/src/app/_services/account.service.ts index 1894e8efd..ce43a0b3f 100644 --- a/UI/Web/src/app/_services/account.service.ts +++ b/UI/Web/src/app/_services/account.service.ts @@ -79,7 +79,7 @@ export class AccountService implements OnDestroy { localStorage.setItem(this.userKey, JSON.stringify(user)); localStorage.setItem(this.lastLoginKey, user.username); - if (user.preferences) { + if (user.preferences && user.preferences.theme) { this.themeService.setTheme(user.preferences.theme.name); } else { this.themeService.setTheme(this.themeService.defaultTheme);