Wizard: Do not show warning icon if warning === ''

Fixes #2743

This hides the warning under FSC min size if the body of warning is empty.
This commit is contained in:
regexowl 2025-01-14 12:30:31 +01:00 committed by Klara Simickova
parent 576262c513
commit 5696d1805f

View file

@ -79,7 +79,7 @@ export const HookValidatedInput = ({
</HelperTextItem>
</HelperText>
)}
{warning !== undefined && (
{warning !== undefined && warning !== '' && (
<HelperText>
<HelperTextItem variant="warning" hasIcon>
{warning}