Ver Fonte

Update newRecipe.js to reflect new bottle data structure.

Lee Morgan há 5 anos atrás
pai
commit
23788af7b9

+ 0 - 4
views/dashboardPage/bundle.js

@@ -2287,10 +2287,6 @@ let newRecipe = {
                 quantity: ingredient.convertToBase(inputs[i].children[2].children[0].value)
             };
 
-            if(ingredient.ingredient.specialUnit === "bottle"){
-                newIngredient.quantity = inputs[i].children[2].children[0].value;
-            }
-
             newRecipe.ingredients.push(newIngredient);
         }
 

+ 0 - 4
views/dashboardPage/js/sidebars/newRecipe.js

@@ -79,10 +79,6 @@ let newRecipe = {
                 quantity: ingredient.convertToBase(inputs[i].children[2].children[0].value)
             };
 
-            if(ingredient.ingredient.specialUnit === "bottle"){
-                newIngredient.quantity = inputs[i].children[2].children[0].value;
-            }
-
             newRecipe.ingredients.push(newIngredient);
         }