Fixing undefined user page title. Fixes #77
authorDessalines <tyhou13@gmx.com>
Mon, 16 Nov 2020 21:32:44 +0000 (15:32 -0600)
committerDessalines <tyhou13@gmx.com>
Mon, 16 Nov 2020 21:32:44 +0000 (15:32 -0600)
src/shared/components/user.tsx

index 37a1384513f91550c81867e8f2caf13642662804..3c50adf8ac06d5ea5457e5983f742040c421aace 100644 (file)
@@ -250,7 +250,7 @@ export class User extends Component<any, UserState> {
   }
 
   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 {