Oops, lost trackPromise

pull/21833/head
David Baker 2017-03-02 15:08:15 +00:00
parent 91ef26a7f8
commit 9c6782af6f
1 changed files with 2 additions and 1 deletions

View File

@ -181,10 +181,11 @@ module.exports = React.createClass({
// will just nop. The point of this being we might not have the email address // will just nop. The point of this being we might not have the email address
// that the user registered with at this stage (depending on whether this // that the user registered with at this stage (depending on whether this
// is the client they initiated registration). // is the client they initiated registration).
let trackPromise = q(null);
if (this._rtsClient) { if (this._rtsClient) {
// Track referral if this.props.referrer set, get team_token in order to // Track referral if this.props.referrer set, get team_token in order to
// retrieve team config and see welcome page etc. // retrieve team config and see welcome page etc.
this._rtsClient.trackReferral( trackPromise = this._rtsClient.trackReferral(
this.props.referrer || '', // Default to empty string = not referred this.props.referrer || '', // Default to empty string = not referred
this.registerLogic.params.idSid, this.registerLogic.params.idSid,
this.registerLogic.params.clientSecret this.registerLogic.params.clientSecret