missing ingredient entity from last commit
This commit is contained in:
parent
26d18d7818
commit
6e331625cb
1 changed files with 3 additions and 3 deletions
|
@ -32,12 +32,12 @@ class Ingredient extends HiveObject {
|
|||
}
|
||||
|
||||
double getAbsolute(int weight) {
|
||||
return (this.value * weight);
|
||||
return value * weight;
|
||||
}
|
||||
|
||||
String getAbsoluteString(int weight){
|
||||
double ingredientWeight = this.getAbsolute(weight);
|
||||
if (this.value < 0.05){
|
||||
final double ingredientWeight = getAbsolute(weight);
|
||||
if (value < 0.05){
|
||||
return ingredientWeight.toStringAsFixed(2);
|
||||
}
|
||||
return ingredientWeight.toStringAsFixed(0);
|
||||
|
|
Loading…
Add table
Reference in a new issue