bugfix :: clear setting & logout >> setting null exception.

This commit is contained in:
leejinho 2020-03-17 16:30:15 +09:00
parent 9b02d4bbfb
commit 4900ba729c

View File

@ -118,21 +118,23 @@ export class AppAuthenticationService {
environment.customConfig.appKey
);
appUserInfo = {
...appUserInfo,
settings: {
...appUserInfo.settings,
general: {
...appUserInfo.settings.general,
autoLogin: false
if (!!appUserInfo) {
appUserInfo = {
...appUserInfo,
settings: {
...appUserInfo.settings,
general: {
...appUserInfo.settings.general,
autoLogin: false
}
}
}
};
};
this.localStorageService.encSet<AppUserInfo>(
KEY_APP_USER_INFO,
appUserInfo,
environment.customConfig.appKey
);
this.localStorageService.encSet<AppUserInfo>(
KEY_APP_USER_INFO,
appUserInfo,
environment.customConfig.appKey
);
}
}
}