From 925d5b4a5391b39acfc6e639ee9a47a676697ebb Mon Sep 17 00:00:00 2001 From: Olava Faksdal <38139899+olavis@users.noreply.github.com> Date: Mon, 27 Feb 2023 13:23:07 +0100 Subject: [PATCH] chore: remove redundant conditional --- web/src/common/components/VersionText.tsx | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/web/src/common/components/VersionText.tsx b/web/src/common/components/VersionText.tsx index 829e8f05..3e14da88 100644 --- a/web/src/common/components/VersionText.tsx +++ b/web/src/common/components/VersionText.tsx @@ -35,23 +35,21 @@ const useCommitInfo = () => { return commitInfo } -export const VersionText = (): JSX.Element => { +export const VersionText = () => { const commitInfo = useCommitInfo() return (
Version:{' '}
- {commitInfo.hash !== '' && commitInfo.date !== '' && (
- <>
-