Changes API_KEY_REMOVED action constant to match API_KEY_CREATED
This commit is contained in:
parent
c508765310
commit
3cedf37647
3 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ export const AUTH_ERROR = 'AUTH_ERROR';
|
|||
export const SETTINGS_UPDATED = 'SETTINGS_UPDATED';
|
||||
|
||||
export const API_KEY_CREATED = 'API_KEY_CREATED';
|
||||
export const REMOVED_API_KEY = 'REMOVED_API_KEY';
|
||||
export const API_KEY_REMOVED = 'API_KEY_REMOVED';
|
||||
|
||||
export const SET_PROJECT_NAME = 'SET_PROJECT_NAME';
|
||||
|
||||
|
|
|
@ -240,7 +240,7 @@ export function removeApiKey(keyId) {
|
|||
axios.delete(`${ROOT_URL}/account/api-keys/${keyId}`, { withCredentials: true })
|
||||
.then((response) => {
|
||||
dispatch({
|
||||
type: ActionTypes.REMOVED_API_KEY,
|
||||
type: ActionTypes.API_KEY_REMOVED,
|
||||
user: response.data
|
||||
});
|
||||
})
|
||||
|
|
|
@ -31,7 +31,7 @@ const user = (state = { authenticated: false }, action) => {
|
|||
return Object.assign({}, state, { emailVerificationTokenState: 'invalid' });
|
||||
case ActionTypes.SETTINGS_UPDATED:
|
||||
return { ...state, ...action.user };
|
||||
case ActionTypes.REMOVED_API_KEY:
|
||||
case ActionTypes.API_KEY_REMOVED:
|
||||
return { ...state, ...action.user };
|
||||
case ActionTypes.API_KEY_CREATED:
|
||||
return { ...state, ...action.user };
|
||||
|
|
Loading…
Reference in a new issue