Merge pull request #283 from LemmyNet/dupe_site_desc

Fix duped site description. Fixes #281
This commit is contained in:
Dessalines 2021-05-05 09:55:24 -04:00 committed by GitHub
commit 8456f692a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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() {