]> Untitled Git - lemmy-ui.git/commitdiff
Only show UI version if they are different
authorDessalines <tyhou13@gmx.com>
Mon, 26 Apr 2021 14:54:41 +0000 (10:54 -0400)
committerDessalines <tyhou13@gmx.com>
Mon, 26 Apr 2021 14:54:41 +0000 (10:54 -0400)
src/shared/components/footer.tsx

index f688bb62c0bc2557a0050af231866a1002cbd727..6547a18ffa3f443294f1f7157bd8b766394fe7cd 100644 (file)
@@ -19,9 +19,11 @@ export class Footer extends Component<FooterProps, any> {
       <nav class="container navbar navbar-expand-md navbar-light navbar-bg p-3">
         <div className="navbar-collapse">
           <ul class="navbar-nav ml-auto">
-            <li class="nav-item">
-              <span class="nav-link">UI: {VERSION}</span>
-            </li>
+            {this.props.site.version !== VERSION && (
+              <li class="nav-item">
+                <span class="nav-link">UI: {VERSION}</span>
+              </li>
+            )}
             <li class="nav-item">
               <span class="nav-link">BE: {this.props.site.version}</span>
             </li>