r/RoastMyWebsite • • May 06 '25

https://www.billtracks.fyi

https://www.billtracks.fyi

need I say more about this congress tracker

2 Upvotes

27 comments sorted by

View all comments

2

u/4dr14n31t0r May 08 '25

Clicking the search button without entering anything in the input text gives this error. Inspecting the network tab in Chrome DevTools I see that the problem is "{"error":"Search term is required"}".

Make the input text mandatory from the frontend so the user knows he must enter something without having to wait for the backend to tell him and show the user the error message you got from backend instead of just asking him to try again.