From 3c3b4eb2af6943c6ab632d708d93712172d334e0 Mon Sep 17 00:00:00 2001 From: Zero King Date: Mon, 12 Apr 2021 14:07:12 +0000 Subject: [PATCH] Fix undefined user page title (#7436) --- src/client/pages/user/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/pages/user/index.vue b/src/client/pages/user/index.vue index 773fd4b28..55fb2198e 100644 --- a/src/client/pages/user/index.vue +++ b/src/client/pages/user/index.vue @@ -271,6 +271,7 @@ export default defineComponent({ data() { return { [symbols.PAGE_INFO]: computed(() => this.user ? { + title: this.user.name ? `${this.user.name} (@${this.user.username})` : `@${this.user.username}`, userName: this.user, avatar: this.user, path: `/@${this.user.username}`,