Merge pull request #2101 from Mikhail5555/patch-2

Allow 1/16th to be a fraction (small salt amounts)
This commit is contained in:
vabene1111
2022-11-09 12:53:13 +01:00
committed by GitHub

View File

@ -280,7 +280,7 @@ export function getUserPreference(pref = undefined) {
export function calculateAmount(amount, factor) {
if (getUserPreference("use_fractions")) {
let return_string = ""
let fraction = frac(amount * factor, 10, true)
let fraction = frac(amount * factor, 16, true)
if (fraction[0] === 0 && fraction[1] === 0 && fraction[2] === 1) {
return roundDecimals(amount * factor)