소스 검색

Bug fix: sub-ingredients not displaying correctly on ingredient details sidebar.

Lee Morgan 5 년 전
부모
커밋
6366f65a5f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      views/dashboardPage/js/classes/Ingredient.js

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

@@ -22,7 +22,7 @@ class SubIngredient{
         console.log(this._ingredient);
         console.log(this._parent);
         console.log(this._parent.unit);
-        return `${parseFloat(this._quantity.toFixed(2))} ${this.ingredient.unit} / ${this._parent.quantity} ${this._parent.unit}`;
+        return `${parseFloat(this.quantity.toFixed(2))} ${this.unit} / ${this._parent.unit}`;
     }
 }