🚨 Removed superfluous argument passed to parseFloat

This commit is contained in:
Alicie
2021-12-26 23:56:43 +00:00
committed by Alicia Sykes
parent 2763e9ee00
commit 43664702bc

View File

@@ -142,7 +142,7 @@ export default {
},
/* Format the price, rounding to given number of decimal places */
formatPrice(priceStr) {
const price = parseFloat(priceStr, 10);
const price = parseFloat(priceStr);
let numDecimals = 0;
if (price < 10) numDecimals = 1;
if (price < 1) numDecimals = 2;