diff --git a/frontend/src/lib/components/Energy/EmptyFoodComp.svelte b/frontend/src/lib/components/Energy/EmptyFoodComp.svelte index 90b84a4..3d121d4 100644 --- a/frontend/src/lib/components/Energy/EmptyFoodComp.svelte +++ b/frontend/src/lib/components/Energy/EmptyFoodComp.svelte @@ -47,11 +47,7 @@ return; } - foodStore.update((value) => { - const updatedValue = [res.data, ...value]; - console.log("Updated items:", updatedValue.length); - return updatedValue; - }); + foodStore.update((value) => [res.data, ...value]); } if (!per100Edited) diff --git a/frontend/src/lib/components/Weight/EmptyWeightComp.svelte b/frontend/src/lib/components/Weight/EmptyWeightComp.svelte index 065e7a3..4b415d0 100644 --- a/frontend/src/lib/components/Weight/EmptyWeightComp.svelte +++ b/frontend/src/lib/components/Weight/EmptyWeightComp.svelte @@ -1,12 +1,13 @@ diff --git a/frontend/src/lib/components/Weight/WeightComp.svelte b/frontend/src/lib/components/Weight/WeightComp.svelte index 007bdc8..7bd3908 100644 --- a/frontend/src/lib/components/Weight/WeightComp.svelte +++ b/frontend/src/lib/components/Weight/WeightComp.svelte @@ -1,34 +1,8 @@