You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users shouldn't be able to add an empty item to their list, or add the same item twice. If they try to do this, we need to show them an error message that explains the problem. This way, we’ll prevent some clutter in their lists.
Acceptance criteria
Show an error message if the user tries to submit an empty item
Show an error message if the user tries to submit a new item that is identical to an existing name. For instance, if the list contains apples and the user adds apples.
Show an error message if the user tries to submit a new item that matches an existing name with punctuation and casing normalized. For instance, if the list contains apples and the user adds aPples or apples, or a pples.
The user’s original input is saved in the database
Notes
There are a couple of ways to approach this task. If you’re not sure how to begin, ask your mentors for advice!
The text was updated successfully, but these errors were encountered:
Summary
Users shouldn't be able to add an empty item to their list, or add the same item twice. If they try to do this, we need to show them an error message that explains the problem. This way, we’ll prevent some clutter in their lists.
Acceptance criteria
apples
and the user addsapples
.apples
and the user addsaPples
orapples,
ora pples
.Notes
The text was updated successfully, but these errors were encountered: