avg_amount added
This commit is contained in:
parent
62042e9558
commit
c333285116
3
main.js
3
main.js
@ -122,7 +122,8 @@ async function addMenuItem(food) {
|
|||||||
updateSummary();
|
updateSummary();
|
||||||
}
|
}
|
||||||
|
|
||||||
itemAmount.value = 100;
|
console.log(food.avg_amount);
|
||||||
|
itemAmount.value = food.avg_amount ?? 100;
|
||||||
itemAmount.addEventListener("input", updateKcalAmount);
|
itemAmount.addEventListener("input", updateKcalAmount);
|
||||||
|
|
||||||
updateKcalAmount();
|
updateKcalAmount();
|
||||||
|
Loading…
Reference in New Issue
Block a user