missing ingredient entity from last commit

This commit is contained in:
broodjeaap89 2021-09-03 17:34:23 +02:00
parent 26d18d7818
commit 6e331625cb

View file

@ -32,12 +32,12 @@ class Ingredient extends HiveObject {
} }
double getAbsolute(int weight) { double getAbsolute(int weight) {
return (this.value * weight); return value * weight;
} }
String getAbsoluteString(int weight){ String getAbsoluteString(int weight){
double ingredientWeight = this.getAbsolute(weight); final double ingredientWeight = getAbsolute(weight);
if (this.value < 0.05){ if (value < 0.05){
return ingredientWeight.toStringAsFixed(2); return ingredientWeight.toStringAsFixed(2);
} }
return ingredientWeight.toStringAsFixed(0); return ingredientWeight.toStringAsFixed(0);