]> Untitled Git - lemmy-ui.git/commitdiff
Fix duped site description. Fixes #281
authorDessalines <tyhou13@gmx.com>
Tue, 4 May 2021 17:57:02 +0000 (13:57 -0400)
committerDessalines <tyhou13@gmx.com>
Tue, 4 May 2021 17:57:02 +0000 (13:57 -0400)
src/shared/components/main.tsx

index 94d085a036cc826a77f95f423ce12d35f64e70d3..67379746b6b025846bbf61d0db8f986873543cb4 100644 (file)
@@ -412,7 +412,8 @@ export class Main extends Component<any, MainState> {
   }
 
   siteName() {
-    return <h5 class="mb-0">{`${this.documentTitle}`}</h5>;
+    let site = this.state.siteRes.site_view.site;
+    return site.name && <h5 class="mb-0">{site.name}</h5>;
   }
 
   admins() {