benschaf / waste-schedule

This is a waste-management App with CRUD functionality. Never forget to take out your bins on time! Connect with your community and be Eco-Conscious together.
0 stars 0 forks source link

Submitting an empty comment throws an error #68

Closed benschaf closed 2 months ago

benschaf commented 2 months ago

Describe the bug When submitting a comment in schedule detail, there is an error when writing to the database

To Reproduce Steps to reproduce the behavior:

  1. Go to schedule detail
  2. leave a comment

Expected behavior The site should reload with the new comment

benschaf commented 2 months ago

fixed with d303e9d

fix: handle empty submitted comments in the view This error was found because the test case threw an error when sending an empty comment. The form on the frontend should not allow empty comments now and the view handles it gracefully as well.