forked from DebaucheryLibrarian/traxxx
Patched user profile breaking when alerts can't be loaded.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user