fix login form ts error

This commit is contained in:
miloschwartz 2025-05-02 11:05:20 -04:00
parent 4392bb604c
commit e58d10fc53
No known key found for this signature in database

View file

@ -250,7 +250,7 @@ export default function LoginForm({ redirect, onLogin, idps }: LoginFormProps) {
}
onChange={(e) => {
field.onChange(e);
if (e.target.value.length === 6) {
if (e.length === 6) {
mfaForm.handleSubmit(onSubmit)();
}
}}