diff --git a/projects/common/src/fm/reducers/app-common.reducer.ts b/projects/common/src/fm/reducers/app-common.reducer.ts index c370e90..2b0641f 100644 --- a/projects/common/src/fm/reducers/app-common.reducer.ts +++ b/projects/common/src/fm/reducers/app-common.reducer.ts @@ -59,10 +59,7 @@ export function reducer(state = initialState, action: appCommonActions.Actions ) } case appCommonActions.INITUSERSUCCESS: { let a = action as appCommonActions.InitUserSuccess; - let claims = {} - Object.getOwnPropertyNames(a.userinfo.info).forEach((k) => { - claims[k] = a.userinfo[k]; - }); + let claims = { ...a.userinfo.info }; var user:IUser = { code:a.user.code, email:claims["email"]!== undefined ? claims["email"] : a.user.name,