fix rounding on new shopping list

This commit is contained in:
smilerz
2021-12-15 14:42:12 -06:00
parent b3f4f2c895
commit ed50a27669
3 changed files with 10 additions and 8 deletions

View File

@ -151,6 +151,9 @@ export default {
}
}
})
for (const [k, v] of Object.entries(amount)) {
amount[k] = Math.round(v * 100 + Number.EPSILON) / 100 // javascript hack to force rounding at 2 places
}
return amount
},
formatCategory: function () {