FIx typo
This commit is contained in:
parent
ea9b90f0b8
commit
2ea3fb9670
|
@ -52,10 +52,10 @@ const currentUser = (state: User = initialUser, action: ReduxAction): User => {
|
||||||
case SIGNOUT_REQUEST_SUCCEEDED:
|
case SIGNOUT_REQUEST_SUCCEEDED:
|
||||||
const userAttributeKeys: string[] = Object.keys(state.attributes)
|
const userAttributeKeys: string[] = Object.keys(state.attributes)
|
||||||
const allNullUserAttributes: UserAttributes = userAttributeKeys.reduce(
|
const allNullUserAttributes: UserAttributes = userAttributeKeys.reduce(
|
||||||
(accumulatedNullUserAttributes: UserAttributes, curentUserAttributeKey: string): UserAttributes => {
|
(accumulatedNullUserAttributes: UserAttributes, currentUserAttributeKey: string): UserAttributes => {
|
||||||
return {
|
return {
|
||||||
...accumulatedNullUserAttributes,
|
...accumulatedNullUserAttributes,
|
||||||
[curentUserAttributeKey]: null,
|
[currentUserAttributeKey]: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user