Explorar o código

Update newRecipe.js to reflect new bottle data structure.

Lee Morgan %!s(int64=5) %!d(string=hai) anos
pai
achega
23788af7b9

+ 0 - 4
views/dashboardPage/bundle.js

@@ -2287,10 +2287,6 @@ let newRecipe = {
                 quantity: ingredient.convertToBase(inputs[i].children[2].children[0].value)
                 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);
             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)
                 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);
             newRecipe.ingredients.push(newIngredient);
         }
         }