afc163 пре 7 година
родитељ
комит
422c720713
1 измењених фајлова са 1 додато и 1 уклоњено
  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) {