uchicago-cs / chigame

BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Remove duplicate messaging for error validation when leaving a review #419

Open danielngira opened 9 months ago

danielngira commented 9 months ago

In PR #261, we added the ability to leave a review and rating on a game in the game detail page that was implemented in issue #40. One of the conditions for leaving a review is that either the review or the rating must be field. That is they can't both be left blank. By the end of issue #261 the form validated this correctly. However, if you try to leave both of the fields blank, it will give off two error messages. In this issue, you will fix this issue that arises from the ReviewForm so that it only gives off one error message. Here is a visual of what you are meant to fix.

Image