Always treat Currency.value as number
This commit is contained in:
parent
e873795562
commit
d2b414f328
@ -5,7 +5,7 @@ export default defineComponent({
|
|||||||
props: ["value"],
|
props: ["value"],
|
||||||
computed: {
|
computed: {
|
||||||
formattedValue() {
|
formattedValue() {
|
||||||
return this.value.toLocaleString(undefined, {
|
return Number(this.value).toLocaleString(undefined, {
|
||||||
minimumFractionDigits: 2,
|
minimumFractionDigits: 2,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user