From 4e3c05017c94bdf6e4821f8a3db087e010cc299b Mon Sep 17 00:00:00 2001 From: Kamil Owczarz Date: Fri, 12 Jan 2024 12:34:15 +0100 Subject: [PATCH] Fix isAlertVisible calculation --- src/components/Form/FormWrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Form/FormWrapper.js b/src/components/Form/FormWrapper.js index 6c6212097eb0..f1c5d6de9071 100644 --- a/src/components/Form/FormWrapper.js +++ b/src/components/Form/FormWrapper.js @@ -121,7 +121,7 @@ function FormWrapper(props) { {isSubmitButtonVisible && ( 0 || Boolean(errorMessage) || !_.isEmpty(formState.errorFields)) && !shouldHideFixErrorsAlert} + isAlertVisible={((_.size(errors) > 0 || !_.isEmpty(formState.errorFields)) && !shouldHideFixErrorsAlert) || Boolean(errorMessage)} isLoading={formState.isLoading} message={_.isEmpty(formState.errorFields) ? errorMessage : null} onSubmit={onSubmit}