From e65938ecc206f9a9414b0f4122f3d465bee0b319 Mon Sep 17 00:00:00 2001 From: Max Richter Date: Thu, 8 Jan 2026 16:43:55 +0100 Subject: [PATCH] fix: round instead of floor in IngredientList --- islands/IngredientsList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/islands/IngredientsList.tsx b/islands/IngredientsList.tsx index d267f49..8a31007 100644 --- a/islands/IngredientsList.tsx +++ b/islands/IngredientsList.tsx @@ -5,7 +5,7 @@ import { unitsOfMeasure } from "@lib/parseIngredient.ts"; function formatAmount(num: number) { if (num === 0) return ""; - return (Math.floor(num * 4) / 4).toString(); + return (Math.round(num * 4) / 4).toString(); } function formatUnit(unit: string, amount: number) {