From 9c6782af6f295ae2b800a77c18697e0e83cf0b0b Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 2 Mar 2017 15:08:15 +0000 Subject: [PATCH] Oops, lost trackPromise --- src/components/structures/login/Registration.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/structures/login/Registration.js b/src/components/structures/login/Registration.js index 12566fc995..81d19c3d68 100644 --- a/src/components/structures/login/Registration.js +++ b/src/components/structures/login/Registration.js @@ -181,10 +181,11 @@ module.exports = React.createClass({ // 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 // is the client they initiated registration). + let trackPromise = q(null); if (this._rtsClient) { // Track referral if this.props.referrer set, get team_token in order to // 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.registerLogic.params.idSid, this.registerLogic.params.clientSecret