From 4242efbd4c5604f1565a111c85bc34d9fe29076f Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sat, 15 May 2021 03:24:21 +0200 Subject: [PATCH] Patched user profile breaking when alerts can't be loaded. --- assets/components/users/user.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }