mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-17 02:34:49 +02:00
🚨 Removed superfluous argument passed to parseFloat
This commit is contained in:
parent
9c6c35ea89
commit
8ad6a2d76c
@ -142,7 +142,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/* Format the price, rounding to given number of decimal places */
|
/* Format the price, rounding to given number of decimal places */
|
||||||
formatPrice(priceStr) {
|
formatPrice(priceStr) {
|
||||||
const price = parseFloat(priceStr, 10);
|
const price = parseFloat(priceStr);
|
||||||
let numDecimals = 0;
|
let numDecimals = 0;
|
||||||
if (price < 10) numDecimals = 1;
|
if (price < 10) numDecimals = 1;
|
||||||
if (price < 1) numDecimals = 2;
|
if (price < 1) numDecimals = 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user