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 environment.customConfig.appKey
); );
appUserInfo = { if (!!appUserInfo) {
...appUserInfo, appUserInfo = {
settings: { ...appUserInfo,
...appUserInfo.settings, settings: {
general: { ...appUserInfo.settings,
...appUserInfo.settings.general, general: {
autoLogin: false ...appUserInfo.settings.general,
autoLogin: false
}
} }
} };
};
this.localStorageService.encSet<AppUserInfo>( this.localStorageService.encSet<AppUserInfo>(
KEY_APP_USER_INFO, KEY_APP_USER_INFO,
appUserInfo, appUserInfo,
environment.customConfig.appKey environment.customConfig.appKey
); );
}
} }
} }