From 17dfff2f21d701222bde1ab1ab95ee47a8f290a7 Mon Sep 17 00:00:00 2001 From: Sergio Betanzos Date: Wed, 13 Jul 2022 18:43:40 +0200 Subject: [PATCH] M #~: Minor fix to login links (#2228) (cherry picked from commit d5813d6a96a1d106780a531272b27ed59e08ea41) --- .../src/client/containers/Login/index.js | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/fireedge/src/client/containers/Login/index.js b/src/fireedge/src/client/containers/Login/index.js index 90726c8b29..2135385ab0 100644 --- a/src/fireedge/src/client/containers/Login/index.js +++ b/src/fireedge/src/client/containers/Login/index.js @@ -178,15 +178,7 @@ function Login() { const AppLinks = () => { const { appTitle } = useGeneral() - - const isNotCurrentApp = (app) => app !== `${appTitle}`.toLowerCase() - - const transformAppTitle = (app) => - APPS_WITH_ONE_PREFIX.includes(app) - ? `One${sentenceCase(app)}` - : sentenceCase(app) - - const otherApps = APPS.filter(isNotCurrentApp).map(transformAppTitle) + const otherApps = APPS.filter((app) => app !== `${appTitle}`.toLowerCase()) if (otherApps?.length === 0) { return null @@ -195,12 +187,20 @@ const AppLinks = () => { return otherApps.map((app) => ( - + )) }