Explorar el Código

Bug fix: ingredientTotals were calculated in base units.

Lee Morgan hace 5 años
padre
commit
5dd63fc184
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      views/dashboardPage/js/classes/Recipe.js

+ 1 - 1
views/dashboardPage/js/classes/Recipe.js

@@ -146,7 +146,7 @@ class Recipe{
         }
 
         for(let i = 0; i < this._ingredients.length; i++){
-            traverseIngredient(this._ingredients[i]._ingredient, this._ingredients[i]._quantity);
+            traverseIngredient(this._ingredients[i]._ingredient, this._ingredients[i].quantity);
         }
     }
 }