zhorton34 / vuejs-validators

Javascript Validation Simplified (Usable Outside Of Vuejs)
https://cleancode.studio
4 stars 6 forks source link

Correct Validation hasErrors() method #2

Closed zhorton34 closed 4 years ago

zhorton34 commented 4 years ago

Currently, the errors will return an object with an empty array for each value that has the possibility of holding errors.

The conditional/check needs to confirm that the errors aren't just empty. Currently, even if there are no errors, this check fails.