fix: correct day header status logic and text color (v1.8.4)

This commit is contained in:
2026-02-13 11:06:22 +01:00
parent 3500790b5d
commit 7008b40987
6 changed files with 56 additions and 27 deletions

View File

@@ -1105,8 +1105,8 @@
});
const hasOrderable = day.items && day.items.some(item => {
// Logic from updateNextWeekBadge
return (item.amount_tracking === false) || (parseInt(item.available_amount) > 0);
// Use pre-calculated available flag from loadMenuDataFromAPI calculation
return item.available;
});
if (hasAnyOrder) {