1 votes

Why doesn't a custom hook update all the properties of an object?

I have this hook that I create, which is executed every time a form submits. The problem is that when the validation is done it only updates the valPass property and does not update the valName. I already verified the ternary operator and it works perfect, the only thing is that it does not update in valName enter the description of the image here

HolaDevs.com

HolaDevs is an online community of programmers and software lovers.
You can check other people responses or create a new question if you don't find a solution

Powered by:

X