Patched user profile breaking when alerts can't be loaded.

This commit is contained in:
DebaucheryLibrarian 2021-05-15 03:24:21 +02:00
parent 0b825a61bb
commit 4242efbd4c
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ import AddAlert from '../alerts/add.vue';
async function fetchUser() { async function fetchUser() {
this.user = await this.$store.dispatch('fetchUser', this.$route.params.username); 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; this.pageTitle = this.user?.username;
} }