I'm using a Vuex store to store a user object. This is a getter for the user object
getters: {
user: (state) => state,
isAuthenticated: state => {
console.log("user object", state);
console.log("authorized", state.authorized);
return state.authorized;
}
},
However, when calling the getter this is what gets logged to the console.
As you can see the value for authorized changes whether the entire object is called or just the value itself. Any ideas?

