From: Dessalines <tyhou13@gmx.com> Date: Tue, 4 May 2021 17:57:02 +0000 (-0400) Subject: Fix duped site description. Fixes #281 X-Git-Url: http://these/git/%22https:/image.com/static/readmes/README.es.md?a=commitdiff_plain;h=f1f8757dd2016e01ab3f3df8faa802fe529665ce;p=lemmy-ui.git Fix duped site description. Fixes #281 --- diff --git a/src/shared/components/main.tsx b/src/shared/components/main.tsx index 94d085a..6737974 100644 --- a/src/shared/components/main.tsx +++ b/src/shared/components/main.tsx @@ -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() {