mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-05 08:48:03 +00:00
JS: Fix UInt160 comparison.
This commit is contained in:
@@ -152,7 +152,7 @@ UInt160.prototype.copyTo = function(d) {
|
||||
};
|
||||
|
||||
UInt160.prototype.equals = function(d) {
|
||||
return this.value === d.value;
|
||||
return isNaN(this.value) || isNaN(d.value) ? false : this.value.equals(d.value);
|
||||
};
|
||||
|
||||
// value = NaN on error.
|
||||
|
||||
Reference in New Issue
Block a user