OpenNutriTracker icon indicating copy to clipboard operation
OpenNutriTracker copied to clipboard

Bug: App allows adding a meal with quantity equal to zero

Open LeticiaMonteiroo opened this issue 7 months ago • 0 comments

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.

LeticiaMonteiroo avatar May 17 '25 01:05 LeticiaMonteiroo