client/src/reducers/sessionsReducer.js
changeset 59 1eb52770eefa
parent 58 f16a080e0bc4
child 62 b2514a9bcd49
--- a/client/src/reducers/sessionsReducer.js	Mon Jun 19 21:37:33 2017 +0200
+++ b/client/src/reducers/sessionsReducer.js	Mon Jun 19 21:46:21 2017 +0200
@@ -1,14 +1,14 @@
 import Immutable from 'immutable';
 import * as types from '../constants/actionTypes';
 
-// export const currentSession = (state = null, action) => {
-//   switch (action.type) {
-//     case types.CREATE_SESSION:
-//       return action.session;
-//     default:
-//       return state;
-//   }
-// };
+export const currentSession = (state = null, action) => {
+  switch (action.type) {
+    case types.CREATE_SESSION:
+      return action.session;
+    default:
+      return state;
+  }
+};
 
 export const sessions = (state = Immutable.List([]), action) => {
   switch (action.type) {