diff --git a/assets/components/users/user.vue b/assets/components/users/user.vue index f7c6e5a6..594ce11a 100644 --- a/assets/components/users/user.vue +++ b/assets/components/users/user.vue @@ -101,7 +101,7 @@ import AddAlert from '../alerts/add.vue'; async function fetchUser() { this.user = await this.$store.dispatch('fetchUser', this.$route.params.username); - this.isMe = this.user.id === this.$store.state.auth.user?.id; + this.isMe = this.user?.id === this.$store.state.auth.user?.id; this.pageTitle = this.user?.username; }