client/src/reducers/miscReducer.js
changeset 129 d48946d164c6
parent 107 e6f85e26b08c
--- a/client/src/reducers/miscReducer.js	Tue Jul 25 19:11:26 2017 +0200
+++ b/client/src/reducers/miscReducer.js	Fri Jul 28 19:40:35 2017 +0200
@@ -9,14 +9,14 @@
   }
 }
 
-export const outbox = (state = [], action) => {
+export const online = (state = false, action) => {
   switch (action.type) {
-    case types.OFFLINE_PURGE_OUTBOX:
-      // FIXME Does not work
-      // Need to find a way to purge outbox
-      // @see https://github.com/jevakallio/redux-offline/issues/68
-      return state;
+    case types.STATUS_ONLINE:
+      return true;
+    case types.STATUS_OFFLINE:
+      return false;
     default:
       return state;
   }
+
 }