fac26 / week2-database-nkndi

0 stars 0 forks source link

Submitting the form causes app to crash if I haven't filled in year or name fields #49

Closed ivan-unfolds closed 1 year ago

ivan-unfolds commented 1 year ago

I think the problem comes from unhandled validation here:

https://github.com/fac26/week2-database-nkndi/blob/6ee7693fc6b0f30adca74545df0dde8c19a160f5/routes/addBook.js#L29-L31

ko-karol commented 1 year ago

Fixed with PR #54