Last active
April 12, 2020 20:22
-
-
Save Serhansolo/9c39b55b039d85dc0676695ffcfdba5b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getters = { | |
getUser(state) { | |
return state.user; | |
}, | |
isUserAuth(state) { | |
return !!state.user; | |
}, | |
getError(state) { | |
return state.error; | |
} | |
}; | |
export default getters; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment