From f1f8757dd2016e01ab3f3df8faa802fe529665ce Mon Sep 17 00:00:00 2001 From: Dessalines <tyhou13@gmx.com> Date: Tue, 4 May 2021 13:57:02 -0400 Subject: [PATCH] Fix duped site description. Fixes #281 --- src/shared/components/main.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() { -- 2.44.1