OpenNutriTracker
OpenNutriTracker copied to clipboard
Bug: App allows adding a meal with quantity equal to zero
Bug description: The app allows the user to add a meal with the quantity set to zero, which is inconsistent since it doesn’t make sense to consume zero grams of a food item.
Expected behavior: The quantity field should have a minimum validation of 1g. The app should show an error message when trying to add a meal with quantity zero, preventing the action.
Environment: Android
Possible solution: Add validation on the quantity field to accept only positive values greater than or equal to 1.