import * as ActionTypes from '../actions/ActionTypes'

function UserReducer(state = [], action) {
  switch (action.type) {
    case ActionTypes.CREATE_USER_SUCCESS:
      return [
        ...state,
        Object.assign({}, action.user),
      ]
  default:
    return state
  }
}

export default UserReducer

@@ -81,10 +81,10 @@
 e = 
-%5B%5D
+%7B%7D
 , ac
@@ -175,9 +175,9 @@
 urn 
-%5B
+%7B
 %0A   
@@ -203,26 +203,11 @@
     
-Object.assign(%7B%7D, 
+...
 acti
@@ -217,17 +217,16 @@
 user
-)
 ,%0A      
 %5D%0A  
@@ -225,9 +225,9 @@
     
-%5D
+%7D
 %0A  d

Store single user instead of array