Bläddra i källkod

Bug fix: ingredientTotals were calculated in base units.

Lee Morgan 5 år sedan
förälder
incheckning
5dd63fc184
1 ändrade filer med 1 tillägg och 1 borttagningar
  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);
         }
     }
 }