Skip to content

Commit

Permalink
fixed scaling for fractions
Browse files Browse the repository at this point in the history
  • Loading branch information
vabene1111 committed Dec 15, 2020
1 parent ac2e9dd commit 7ca88f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/templates/recipe_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ <h5 class="modal-title" id="bookmarkModalLabel">Modal title</h5>
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]
Expand Down

0 comments on commit 7ca88f3

Please sign in to comment.