Эх сурвалжийг харах

Bug fix: ingredientTotals were calculated in base units.

Lee Morgan 5 жил өмнө
parent
commit
5dd63fc184

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