diff --git a/.changeset/pretty-students-wonder.md b/.changeset/pretty-students-wonder.md new file mode 100644 index 0000000000..0eebb6dba1 --- /dev/null +++ b/.changeset/pretty-students-wonder.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/onboarding-ui": patch +--- + +Fix offline registration wizard validation diff --git a/packages/onboarding-ui/src/forms/RegisterOfflineForm/steps/PasteStep.tsx b/packages/onboarding-ui/src/forms/RegisterOfflineForm/steps/PasteStep.tsx index 30d6838a95..8a26c3f967 100644 --- a/packages/onboarding-ui/src/forms/RegisterOfflineForm/steps/PasteStep.tsx +++ b/packages/onboarding-ui/src/forms/RegisterOfflineForm/steps/PasteStep.tsx @@ -17,7 +17,7 @@ const PasteStep = ({ setStep }: PasteStepProps): ReactElement => { const isMobile = !breakpoints.includes('md'); const { register, - formState: { isSubmitting, isValid }, + formState: { isSubmitting, isValidating, isSubmitSuccessful }, } = useFormContext(); return ( @@ -59,7 +59,11 @@ const PasteStep = ({ setStep }: PasteStepProps): ReactElement => {