SauveJeanLuc / coffee-tasks

Next gen AI Powered Todo-List
https://coffeetasks.netlify.app
MIT License
40 stars 73 forks source link

Bug: Empty names are valid while adding tasks #149

Closed divya-nshi closed 1 year ago

divya-nshi commented 1 year ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Describe the bug \ Able to add empty string as a task name

To Reproduce \ Open Add task and type a space in the Add a new task tab. It can be entered as a valid task name

  1. Go to 'home page'
  2. Click on 'Add task'
  3. Add space in the Add a new task form input
  4. press Enter or add task.

Expected behavior \ Task with empty name should not be allowed

Current behaviour \ we are able to create tasks with empty name by having space as the task name.

Possible solutions Adding a validation to check the input string after trimming

Screenshots Animation image

Desktop (please complete the following information):