Remove unneeded disabled button on Bio step

We don't require users to have bios, so we shouldn't force them to add one
during the onboarding steps in order to proceed to the next step without
"skipping" it.
This commit is contained in:
Justin 2022-09-27 10:35:35 -04:00
parent e29527949d
commit d4cf5dc2b9
1 changed files with 1 additions and 5 deletions

View File

@ -17,10 +17,6 @@ const BioStep = ({ onNext }: { onNext: () => void }) => {
const [isSubmitting, setSubmitting] = React.useState<boolean>(false);
const [errors, setErrors] = React.useState<string[]>([]);
const trimmedValue = value.trim();
const isValid = trimmedValue.length > 0;
const isDisabled = !isValid;
const handleSubmit = () => {
setSubmitting(true);
@ -79,7 +75,7 @@ const BioStep = ({ onNext }: { onNext: () => void }) => {
block
theme='primary'
type='submit'
disabled={isDisabled || isSubmitting}
disabled={isSubmitting}
onClick={handleSubmit}
>
{isSubmitting ? (