Explorar o código

Bug fix: ingredientTotals were calculated in base units.

Lee Morgan %!s(int64=5) %!d(string=hai) anos
pai
achega
5dd63fc184
Modificáronse 1 ficheiros con 1 adicións e 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);
         }
     }
 }