Просмотр исходного кода

Update newRecipe.js to reflect new bottle data structure.

Lee Morgan 5 лет назад
Родитель
Сommit
23788af7b9
2 измененных файлов с 0 добавлено и 8 удалено
  1. 0 4
      views/dashboardPage/bundle.js
  2. 0 4
      views/dashboardPage/js/sidebars/newRecipe.js

+ 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);
         }