Explorar el Código

fix falsy currentUser

afc163 hace 8 años
padre
commit
422c720713
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/models/user.js

+ 1 - 1
src/models/user.js

@@ -35,7 +35,7 @@ export default {
     saveCurrentUser(state, action) {
       return {
         ...state,
-        currentUser: action.payload,
+        currentUser: action.payload || {},
       };
     },
     changeNotifyCount(state, action) {