fac-13 / PaGiToNi

https://pagitoni-news.herokuapp.com/
1 stars 2 forks source link

Handle user trying to input an empty string in the front end #66

Open helenzhou6 opened 6 years ago

helenzhou6 commented 6 years ago

https://github.com/fac-13/PaGiToNi/blob/7a5fea2756152ef2845ba5370cc0cee026ce7f4f/src/handler.js#L79-L85

I can see you're handling an empty input in the backend in handler.js - good job - could I suggest also handling it in the front-end too (perhaps on the front-end, if the user has tried to press enter or click on the submit button when the input is empty, it would display something and not send the request to the backend in the first place.

Very minor issue though!