Fix bug in trace message for updateOwnerOffersFundedAmount

This commit is contained in:
Chris Clark
2015-05-27 11:56:27 -07:00
parent f4fa10b9c0
commit 7d7970d318

View File

@@ -793,9 +793,9 @@ OrderBook.prototype.updateOwnerOffersFundedAmount = function(account) {
const self = this;
if (this._remote.trace) {
const ownerFunds = this.getOwnerFunds(account).to_text();
log.info('updating offer funds', this._key, account, ownerFunds);
const ownerFunds = this.getOwnerFunds(account);
log.info('updating offer funds', this._key, account,
ownerFunds ? ownerFunds.to_text() : 'undefined');
}
this.resetOwnerOfferTotal(account);