Skip to content

Commit

Permalink
Update RecipeView.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aquzif committed Feb 11, 2024
1 parent b140eca commit 6e058b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Views/Dashboard/RecipeView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const RecipeView = () => {
}} >
<EntryRawProductContent data={{
product_name: `${ingredient.product.name} `,
amount: Math.fround(ingredient.amount_in_unit * porMulti),
amount: Math.fround(ingredient.amount_in_unit * (porMulti / recipe?.serving_amount)),
unit_name: <>
{ingredient.unit.name} ({Math.fround(ingredient.amount_in_grams)*porMulti}g) <br /> (<b>{Math.round(ingredient.calories * porMulti)}</b> kcal)</>
}} />
Expand Down

0 comments on commit 6e058b1

Please sign in to comment.