Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
feat(Recurring Buy): if recurring exists change addr label
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Nov 16, 2017
1 parent ba59a39 commit e0330c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/exchange-delegate.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ ExchangeDelegate.prototype.reserveReceiveAddress = function () {
}
trade._account_index = account.index;
trade._receive_index = reservation.receiveIndex;
reservation.commit(`${self.labelBase} #${trade.id}`);
let id = trade.tradeSubscriptionId || trade.id;
let label = trade.tradeSubscriptionId ? 'Recurring Order' : self.labelBase;
reservation.commit(`${label} #${id}`);
}
};
};
Expand Down

0 comments on commit e0330c5

Please sign in to comment.