From e1a14ac4ae00e18f39da62df821561fa6d7e28ef Mon Sep 17 00:00:00 2001 From: David Lu Date: Wed, 13 Jul 2016 19:28:59 -0400 Subject: Hide build number if it is the same as the version number in the about dialog (#3585) --- webapp/components/about_build_modal.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'webapp/components/about_build_modal.jsx') diff --git a/webapp/components/about_build_modal.jsx b/webapp/components/about_build_modal.jsx index 197179191..1f41d76f9 100644 --- a/webapp/components/about_build_modal.jsx +++ b/webapp/components/about_build_modal.jsx @@ -104,6 +104,11 @@ export default class AboutBuildModal extends React.Component { } } + let version = '\u00a0' + config.Version; + if (config.BuildNumber !== config.Version) { + version += '\u00a0 (' + config.BuildNumber + ')'; + } + return ( - {'\u00a0' + config.Version + '\u00a0 (' + config.BuildNumber + ')'} + {version}