From 7ca88f3c0a1ba07c2870841fad099ee7f9682573 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Tue, 15 Dec 2020 22:16:15 +0100 Subject: [PATCH] fixed scaling for fractions --- cookbook/templates/recipe_view.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/templates/recipe_view.html b/cookbook/templates/recipe_view.html index 6cfc8ef925..8d01540adc 100644 --- a/cookbook/templates/recipe_view.html +++ b/cookbook/templates/recipe_view.html @@ -583,7 +583,7 @@ calculateAmount: function (amount) { {% if request.user.userpreference.use_fractions %} let return_string = '' - let fraction = frac.cont(amount, 9, true) + let fraction = frac.cont((amount * this.ingredient_factor), 9, true) if (fraction[0] > 0) { return_string += fraction[0]