From 22bdcbc1029e9d5c55d8b903edec5fc4661fad7d Mon Sep 17 00:00:00 2001 From: Darya Umrikhina Date: Thu, 1 Aug 2024 15:17:33 +0400 Subject: [PATCH] Login:Components:GreetingContainer: change condition in logical operator --- .../GreetingContainer/GreetingContainer.tsx | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/packages/login/src/components/GreetingContainer/GreetingContainer.tsx b/packages/login/src/components/GreetingContainer/GreetingContainer.tsx index a2dd0dabdf..f39f43116c 100644 --- a/packages/login/src/components/GreetingContainer/GreetingContainer.tsx +++ b/packages/login/src/components/GreetingContainer/GreetingContainer.tsx @@ -51,16 +51,18 @@ export const GreetingContainer = ({ return ( <> greeting-logo - - {welcomeTitle - ? t(`${welcomeTitle}`, { productName: PRODUCT_NAME }) - : greetingSettings} - + {(welcomeTitle || greetingSettings) && ( + + {welcomeTitle + ? t(`${welcomeTitle}`, { productName: PRODUCT_NAME }) + : greetingSettings} + + )} ); };