Skip to content

Commit

Permalink
Removed description checking while button disable in form Builder modal
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhaib-aot committed Oct 28, 2024
1 parent 6c3ed16 commit bd84c7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const FormBuilderModal: React.FC<BuildFormModalProps> = React.memo(
<CustomButton
variant={nameError ? "dark" : "primary"}
size="md"
disabled={!!nameError || formSubmitted || !name || !formDescription} // Disable if errors or fields are empty
disabled={!!nameError || formSubmitted || !name } // Disable if errors or fields are empty
label={primaryBtnLabel}
buttonLoading={!nameError && formSubmitted ? true : false}
onClick={handlePrimaryAction} // Use the new handler
Expand Down

0 comments on commit bd84c7b

Please sign in to comment.