carlosvegap / capstone-kickoff

0 stars 0 forks source link

Back visitor login error not showing #64

Closed CarLosVegga closed 2 years ago

CarLosVegga commented 2 years ago

Hi everyone!

I was thinking about one of the feedback I had regarding validation and I just realized that the login with the new refactoring didn't include the reason why the login might not be succesful.

In this new PR you may find that running well.

I added a try catch function and check if there is an error attribute on my query.

I also decided to use this space to apply prettier to a couple of things I missed last time (sorry, since i have the auto-save-on-change option on vscode, I sometimes forget to do cmd S to apply prettier, I will be more careful about that!)