Explicitly parse value to string to make sure toFixed() is working

This commit is contained in:
Blue (Lukas Rieger) 2021-03-19 01:27:17 +01:00
parent b6a6adcf5d
commit 0629739985
No known key found for this signature in database
GPG Key ID: 904C4995F9E1F800

View File

@ -24,7 +24,7 @@ export default {
},
computed: {
formattedValue() {
return this.value.toFixed(countDecimals(this.step));
return parseFloat(this.value).toFixed(countDecimals(this.step));
}
}
}