thenewboston-blockchain / Website

The website for thenewboston.
https://thenewboston.com
MIT License
597 stars 358 forks source link

[Feedback form] Name field value trimming #2143

Closed Creatinas closed 2 years ago

Creatinas commented 2 years ago

Bug Description Name field value is not trimmed before submitting

Steps to Reproduce Steps to reproduce the behavior:

  1. Go to https://thenewboston.com/faq/HowTo
  2. Scroll down to feedback form
  3. For Name field add only space (" ")
  4. Fill other fields too
  5. Submit form

Expected behavior Name field should show validation message below it stating that field value is missing

Actual behavior No error are visible, but when submitting form user is prompted with toast message - "Sorry, there was an error with your submission. Please try again later.". Also network tab shows 400 for POST with response - "{ "name": [ "This field may not be blank." ] }"

OS and Browser

Account Number 679aff9a630beb883cc10368a2dedb7722e63b682143ae9fd2e051c13b710752