agzuniverse / MecBooksWatch

A textbook exchange platform for college students. ReactJS frontend, serverless backend with Firebase. First prize winning project at MEC-labs 18 :trophy:
9 stars 7 forks source link

Show error if no Image is uploaded during Add Book #72

Closed 123vivekr closed 6 years ago

agzuniverse commented 6 years ago

@123vivekr do this in your validator which already displays a visual popup when something is not correctly filled in. Just check if the image file variable is null and display an appropriate warning.

The backend already rejects the request if no image file is supplied so that's not a problem.