diff --git a/modules/recipe_form/components/IngredientBox.js b/modules/recipe_form/components/IngredientBox.js index 310cff21..62381982 100644 --- a/modules/recipe_form/components/IngredientBox.js +++ b/modules/recipe_form/components/IngredientBox.js @@ -121,7 +121,15 @@ class IngredientBox extends React.Component { />
- + { + // Add the quantity for each ingredient so the preview will display properly + const ings = [...x.ingredients].map(i => {return { + quantity: i.numerator ? formatQuantity(1, 1, i.numerator, i.denominator) + " " : '', + ...i + }}) + + return { ...x, ingredients: ings } + })}/>