From 091f998b5f5cae0b64ca38d1b82e31a52458248b Mon Sep 17 00:00:00 2001 From: Dessalines <tyhou13@gmx.com> Date: Mon, 26 Apr 2021 10:54:41 -0400 Subject: [PATCH] Only show UI version if they are different --- src/shared/components/footer.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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> -- 2.44.1