From 8c7616c3a70232e533a06a92ca32b94ac555ffad Mon Sep 17 00:00:00 2001 From: MartinH0 Date: Thu, 9 Jul 2020 15:33:58 +0200 Subject: [PATCH] Update ShlinkVersions.js --- src/common/ShlinkVersions.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/common/ShlinkVersions.js b/src/common/ShlinkVersions.js index 52878fc4..16520d2a 100644 --- a/src/common/ShlinkVersions.js +++ b/src/common/ShlinkVersions.js @@ -15,14 +15,12 @@ const propTypes = { }; const ShlinkVersions = ({ selectedServer, className, clientVersion = SHLINK_WEB_CLIENT_VERSION }) => { - const { printableVersion: serverVersion } = selectedServer; - const normalizedClientVersion = pipe(versionToSemVer(), versionToPrintable)(clientVersion); - const linkClientVersion = () => (
normalizedClientVersion
); - const linkServerVersion = () => (
serverVersion
); + const { printableVersion: serverVersion } = selectedServer; + const normalizedClientVersion = pipe(versionToSemVer(), versionToPrintable)(clientVersion); return ( - Client: {linkClientVersion} - Server: {linkServerVersion} + Client: {normalizedClientVersion} - Server: {serverVersion} ); };