1👍
✅
It should be this.$store.getters.user.username
instead of this.$store.getters.username
computed: {
username() {
const user = this.$store.getters.user
if (user) {
return user.username
}
}
},
Source:stackexchange.com