diff --git a/src/lib/js/nutrition.svelte.ts b/src/lib/js/nutrition.svelte.ts index f402e60..b8242ae 100644 --- a/src/lib/js/nutrition.svelte.ts +++ b/src/lib/js/nutrition.svelte.ts @@ -274,7 +274,7 @@ export function createNutritionCalculator( total++; const m = mappingIndex.get(`${ing.sectionIndex}-${ing.ingredientIndex}`); // Manually excluded ingredients count as covered - if (m?.excluded) { total++; mapped++; continue; } + if (m?.excluded) { mapped++; continue; } if (m && m.matchMethod !== 'none') mapped++; } return total > 0 ? mapped / total : 1;