Fix item cost precision

This commit is contained in:
Hillel Coren 2017-08-15 15:25:58 +03:00
parent bea856201d
commit 810a50e3f5

View File

@ -821,7 +821,7 @@ function ItemModel(data) {
this.prettyCost = ko.computed({ this.prettyCost = ko.computed({
read: function () { read: function () {
return this.cost() ? roundSignificant(this.cost()) : ''; return this.cost() ? roundSignificant(this.cost()).toFixed(2) : '';
}, },
write: function (value) { write: function (value) {
this.cost(value); this.cost(value);