Explorar o código

fix falsy currentUser

afc163 %!s(int64=7) %!d(string=hai) anos
pai
achega
422c720713
Modificáronse 1 ficheiros con 1 adicións e 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) {