Day-Switching in DatePicker Overwrites All Days With Previous Day’s Entries
When switching between days in the calendar view, the app incorrectly copies food entries and calorie data from the previously selected day to all other days. After this happens, it becomes impossible to modify, delete, or correctly view entries for any date.Steps to Reproduce: 1. Start a new day and attempt to log today’s meals. 2. Realize that a meal from the previous day was forgotten. 3. Open the calendar view and select yesterday. 4. Edit or add an entry for yesterday. 5. Open the DatePicker again and select today. 6. Observe that all entries and calorie values from yesterday are loaded into today. 7. Tap into the entries; the app triggers API calls and recalculates calories across all days. 8. Switch between different days (yesterday, the day before, today, tomorrow).Observed Behavior: • All days display the same food entries and calorie values from yesterday. • All days appear overwritten. • Editing, deleting, or adding entries becomes impossible because the incorrect data persists across every date.Expected Behavior: • Each day should maintain its own independent food entries and calorie values. • Editing one day should not affect any other day. • The DatePicker should load correct and isolated data for each individual date.Pa
Patrick
2 weeks ago0