Changes API_KEY_REMOVED action constant to match API_KEY_CREATED

This commit is contained in:
Andrew Nicolaou 2019-05-15 16:39:53 +02:00 committed by Cassie Tarakajian
parent 64caab0702
commit e77cbf4fa3

View file

@ -31,15 +31,9 @@ const user = (state = { authenticated: false }, action) => {
return Object.assign({}, state, { emailVerificationTokenState: 'invalid' });
case ActionTypes.SETTINGS_UPDATED:
return { ...state, ...action.user };
<<<<<<< HEAD
case ActionTypes.API_KEY_REMOVED:
return { ...state, ...action.user };
case ActionTypes.API_KEY_CREATED:
=======
case ActionTypes.REMOVED_API_KEY:
return { ...state, ...action.user };
case ActionTypes.ADDED_API_KEY:
>>>>>>> You can now generate keys from the advanced settings interface
return { ...state, ...action.user };
default:
return state;