fixed typo that broke fractions

This commit is contained in:
vabene1111
2021-02-18 09:17:42 +01:00
parent 894d2d2e6b
commit e727cae020
4 changed files with 5 additions and 5 deletions

View File

@@ -78,9 +78,9 @@ export function getUserPreference(pref) {
import {frac} from "@/utils/fractions";
export function calculateAmount(amount, factor) {
if (getUserPreference('user_fractions')) {
if (getUserPreference('use_fractions')) {
let return_string = ''
let fraction = frac.cont((amount * factor), 9, true)
let fraction = frac((amount * factor), 9, true)
if (fraction[0] > 0) {
return_string += fraction[0]