From: Dessalines <tyhou13@gmx.com> Date: Mon, 26 Apr 2021 14:54:41 +0000 (-0400) Subject: Only show UI version if they are different X-Git-Url: http://these/git/%22https:/image.com/static/readmes/README.es.md?a=commitdiff_plain;h=091f998b5f5cae0b64ca38d1b82e31a52458248b;p=lemmy-ui.git Only show UI version if they are different --- diff --git a/src/shared/components/footer.tsx b/src/shared/components/footer.tsx index f688bb6..6547a18 100644 --- a/src/shared/components/footer.tsx +++ b/src/shared/components/footer.tsx @@ -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>