diff --git a/apps/api/src/routes/shopping.ts b/apps/api/src/routes/shopping.ts index afb3426..2c5a20b 100644 --- a/apps/api/src/routes/shopping.ts +++ b/apps/api/src/routes/shopping.ts @@ -387,7 +387,7 @@ async function generateItemsFromPlan( const rounded = targetUnit === "COUNT" ? Math.ceil(qty) : Math.ceil(qty * 10) / 10; const estimatedPrice = info?.defaultPriceMinorPerKg != null - ? Math.round((need.grams / 1000) * info.defaultPriceMinorPerKg * 10) / 10 + ? Math.round((need.grams / 1000) * info.defaultPriceMinorPerKg) : null; await app.db.insert(schema.shoppingListItems).values({