Login:Components:GreetingContainer: change condition in logical operator

This commit is contained in:
Darya Umrikhina 2024-08-01 15:17:33 +04:00
parent 232769d26d
commit 22bdcbc102

View File

@ -51,16 +51,18 @@ export const GreetingContainer = ({
return (
<>
<img src={logoUrl} className="logo-wrapper" alt="greeting-logo" />
<Text
fontSize="23px"
fontWeight={700}
textAlign="center"
className="greeting-title"
>
{welcomeTitle
? t(`${welcomeTitle}`, { productName: PRODUCT_NAME })
: greetingSettings}
</Text>
{(welcomeTitle || greetingSettings) && (
<Text
fontSize="23px"
fontWeight={700}
textAlign="center"
className="greeting-title"
>
{welcomeTitle
? t(`${welcomeTitle}`, { productName: PRODUCT_NAME })
: greetingSettings}
</Text>
)}
</>
);
};