Commit 422c7207 authored by afc163's avatar afc163

fix falsy currentUser

parent 2fa5a265
......@@ -35,7 +35,7 @@ export default {
saveCurrentUser(state, action) {
return {
...state,
currentUser: action.payload,
currentUser: action.payload || {},
};
},
changeNotifyCount(state, action) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment