[Vuejs]-State won't completely mutate

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
      }
    }
  },
👤ittus

Leave a comment