From: Dessalines Date: Mon, 16 Nov 2020 21:32:44 +0000 (-0600) Subject: Fixing undefined user page title. Fixes #77 X-Git-Url: http://these/git/%7B%60%24%7BarchiveTodayUrl%7D/%7B%60/feeds/inbox/%24%7BUserService.Instance.auth%7D.xml%60%7D?a=commitdiff_plain;h=fb45345bb2f09df87181ac0cd364e8c00a8e713d;p=lemmy-ui.git Fixing undefined user page title. Fixes #77 --- diff --git a/src/shared/components/user.tsx b/src/shared/components/user.tsx index 37a1384..3c50adf 100644 --- a/src/shared/components/user.tsx +++ b/src/shared/components/user.tsx @@ -250,7 +250,7 @@ export class User extends Component { } get documentTitle(): string { - return `@${this.state.userName} - ${this.state.siteRes.site.name}`; + return `@${this.state.userRes.user.name} - ${this.state.siteRes.site.name}`; } get bioTag(): string {