This commit is contained in:
@ -198,7 +198,7 @@ function updateRowWithNewData(row, weight, nutritionData) {
|
|||||||
const portions = portionsInput.value ? parseInt(portionsInput.value, 10) : 1;
|
const portions = portionsInput.value ? parseInt(portionsInput.value, 10) : 1;
|
||||||
|
|
||||||
// Teilen des Gewichts durch die Anzahl der Portionen und Aufrunden
|
// Teilen des Gewichts durch die Anzahl der Portionen und Aufrunden
|
||||||
weight = schulrunden(Math.ceil(weight / portions));
|
weight = schulrunden(weight / portions);
|
||||||
|
|
||||||
|
|
||||||
fetch(`/add_lm?food=${encodeURIComponent(food)}&weight=${encodeURIComponent(weight)}`)
|
fetch(`/add_lm?food=${encodeURIComponent(food)}&weight=${encodeURIComponent(weight)}`)
|
||||||
|
Reference in New Issue
Block a user