Open yotamdahan opened 3 years ago
apparently 2 states confuses the plugin, I solved it by using only error state
const firstStep = () =>{
if(name === ""){
setErrors(true);
}
else{
setErrors(false);
}
}
Hey, I have tried to validate the step before moving to the next one. It's partially working.
This is my states validation
And part of the return:
Each time I continue to the next step and
name
state is empty the screen is moving forward to step 2 (which isn't suppose to happen becauseisValid
suppose to be false), only when I return back to step 1 and try again I'm receivingisValid = false
.How can I solve that?