avg_amount added

This commit is contained in:
Timon Ringwald 2022-09-09 00:55:16 +02:00
parent 62042e9558
commit c333285116
2 changed files with 244 additions and 134 deletions

375
data.js

File diff suppressed because it is too large Load Diff

View File

@ -122,7 +122,8 @@ async function addMenuItem(food) {
updateSummary();
}
itemAmount.value = 100;
console.log(food.avg_amount);
itemAmount.value = food.avg_amount ?? 100;
itemAmount.addEventListener("input", updateKcalAmount);
updateKcalAmount();