This commit is contained in:
Kyle Corbelli 2017-09-15 20:03:05 -07:00
parent ea9b90f0b8
commit 2ea3fb9670

View File

@ -52,10 +52,10 @@ const currentUser = (state: User = initialUser, action: ReduxAction): User => {
case SIGNOUT_REQUEST_SUCCEEDED:
const userAttributeKeys: string[] = Object.keys(state.attributes)
const allNullUserAttributes: UserAttributes = userAttributeKeys.reduce(
(accumulatedNullUserAttributes: UserAttributes, curentUserAttributeKey: string): UserAttributes => {
(accumulatedNullUserAttributes: UserAttributes, currentUserAttributeKey: string): UserAttributes => {
return {
...accumulatedNullUserAttributes,
[curentUserAttributeKey]: null,
[currentUserAttributeKey]: null,
}
},
{},