Skip to content

Commit

Permalink
Merge branch 'main' into switch
Browse files Browse the repository at this point in the history
  • Loading branch information
boydc2014 authored Jan 14, 2021
2 parents bb988b9 + 70c0d7b commit 8a16642
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ export const CreateQnAFromScratchModal: React.FC<CreateQnAFromModalProps> = (pro

formConfig.name.validate = validateName(qnaFiles);
const { formData, updateField, hasErrors, formErrors } = useForm(formConfig);
const disabled = hasErrors;

const disabled = hasErrors || !formData.name;
return (
<Dialog
dialogContentProps={{
Expand Down

0 comments on commit 8a16642

Please sign in to comment.