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.
nuke-scss
Justin 2022-09-27 10:35:35 -04:00
rodzic e29527949d
commit d4cf5dc2b9
1 zmienionych plików z 1 dodań i 5 usunięć

Wyświetl plik

@ -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 ? (