mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
JS: Fix Add for Amount.
This commit is contained in:
@@ -115,8 +115,8 @@ Amount.prototype.add = function (v) {
|
||||
result = this;
|
||||
}
|
||||
else if (this.is_zero()) {
|
||||
result = new Amount();
|
||||
result._is_native = false;
|
||||
result = v.clone();
|
||||
// YYY Why are these cloned? We never modify them.
|
||||
result._currency = this._currency.clone();
|
||||
result._issuer = this._issuer.clone();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user