mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
fixed scaling for fractions
This commit is contained in:
@@ -583,7 +583,7 @@
|
|||||||
calculateAmount: function (amount) {
|
calculateAmount: function (amount) {
|
||||||
{% if request.user.userpreference.use_fractions %}
|
{% if request.user.userpreference.use_fractions %}
|
||||||
let return_string = ''
|
let return_string = ''
|
||||||
let fraction = frac.cont(amount, 9, true)
|
let fraction = frac.cont((amount * this.ingredient_factor), 9, true)
|
||||||
|
|
||||||
if (fraction[0] > 0) {
|
if (fraction[0] > 0) {
|
||||||
return_string += fraction[0]
|
return_string += fraction[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user