diff --git a/src/js/amount.js b/src/js/amount.js index 03c7748694..9d494851c7 100644 --- a/src/js/amount.js +++ b/src/js/amount.js @@ -276,6 +276,9 @@ Amount.prototype.copyTo = function (d, negate) { this._currency.copyTo(d._currency); this._issuer.copyTo(d._issuer); + // Prevent negative zero + if (d.is_zero()) d._is_negative = false; + return d; };