diff --git a/src/amount.js b/src/amount.js index 41a41512..8a4813fc 100644 --- a/src/amount.js +++ b/src/amount.js @@ -388,7 +388,7 @@ Amount.prototype._copy = function(value) { Amount.prototype.compareTo = function(to) { var toAmount = Amount.from_json(to); if (!this.is_comparable(toAmount)) { - return new Amount(NaN); + return 0; } return this._value.comparedTo(toAmount._value); };