Rename deleteUser to removeUser since local state change in redux

pull/10616/head
Jared Scheib 2017-11-02 20:00:51 -07:00
parent 1529018d74
commit ac38d4de79
2 changed files with 4 additions and 4 deletions

View File

@ -38,8 +38,8 @@ export const syncUser = (staleUser, syncedUser) => ({
},
})
export const deleteUser = user => ({
type: 'CHRONOGRAF_DELETE_USER',
export const removeUser = user => ({
type: 'CHRONOGRAF_REMOVE_USER',
payload: {
user,
},
@ -71,6 +71,6 @@ export const createUserAsync = (url, user) => async dispatch => {
dispatch(syncUser(user, data))
} catch (error) {
dispatch(errorThrown(error))
dispatch(deleteUser(user))
dispatch(removeUser(user))
}
}

View File

@ -34,7 +34,7 @@ const adminChronograf = (state = initialState, action) => {
}
}
case 'CHRONOGRAF_DELETE_USER': {
case 'CHRONOGRAF_REMOVE_USER': {
const {user} = action.payload
return {
...state,