Site again.
authorDessalines <tyhou13@gmx.com>
Tue, 15 Sep 2020 16:07:18 +0000 (11:07 -0500)
committerDessalines <tyhou13@gmx.com>
Tue, 15 Sep 2020 16:07:18 +0000 (11:07 -0500)
src/shared/components/navbar.tsx

index bf2b48b495bc706025b1b4ef29558aab7083a0e2..5a10b6ab8910fa0cd8b28be84bdf9585d8aa48f2 100644 (file)
@@ -182,21 +182,23 @@ export class Navbar extends Component<NavbarProps, NavbarState> {
     return (
       <nav class="navbar navbar-expand-lg navbar-light shadow-sm p-0 px-3">
         <div class="container">
-          <Link
-            title={this.props.site.version}
-            className="d-flex align-items-center navbar-brand mr-md-3"
-            to="/"
-          >
-            {this.props.site.site.icon && showAvatars() && (
-              <img
-                src={pictrsAvatarThumbnail(this.props.site.site.icon)}
-                height="32"
-                width="32"
-                class="rounded-circle mr-2"
-              />
-            )}
-            {this.props.site.site.name}
-          </Link>
+          {this.props.site.site && (
+            <Link
+              title={this.props.site.version}
+              className="d-flex align-items-center navbar-brand mr-md-3"
+              to="/"
+            >
+              {this.props.site.site.icon && showAvatars() && (
+                <img
+                  src={pictrsAvatarThumbnail(this.props.site.site.icon)}
+                  height="32"
+                  width="32"
+                  class="rounded-circle mr-2"
+                />
+              )}
+              {this.props.site.site.name}
+            </Link>
+          )}
           {this.state.isLoggedIn && (
             <Link
               className="ml-auto p-0 navbar-toggler nav-link border-0"