corrected servings factor

This commit is contained in:
vabene1111
2021-01-13 21:35:39 +01:00
parent 9e5a7b2cc0
commit 99f06955dc
8 changed files with 28 additions and 17 deletions

View File

@@ -35,7 +35,7 @@ export default {
name: 'Ingredient',
props: {
ingredient: Object,
servings: {
ingredient_factor: {
type: Number,
default: 1,
}
@@ -47,7 +47,7 @@ export default {
},
methods: {
calculateAmount: function (x) {
return calculateAmount(x, this.servings)
return calculateAmount(x, this.ingredient_factor)
}
}
}