From 6e960492ff61910942391f452fba966500700f65 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Mon, 25 Feb 2019 16:24:03 +0000 Subject: [PATCH] Merge pull request #1550 from sharelatex/spd-fix-broken-team-invite-accept Fix broken accept-team-invite page GitOrigin-RevId: 0ba3c906548358931902beb48812257da16fc5db --- services/web/app/views/subscriptions/team/invite.pug | 2 +- .../public/src/main/subscription/team-invite-controller.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/web/app/views/subscriptions/team/invite.pug b/services/web/app/views/subscriptions/team/invite.pug index bb698e3c51..27de120035 100644 --- a/services/web/app/views/subscriptions/team/invite.pug +++ b/services/web/app/views/subscriptions/team/invite.pug @@ -3,7 +3,7 @@ extends ../../layout block scripts script(type='text/javascript'). window.teamId = '#{teamId}' - window.hasPersonalSubscription = #{hasPersonalSubscription} + window.hasIndividualRecurlySubscription = #{hasIndividualRecurlySubscription} window.inviteToken = '#{inviteToken}' block content diff --git a/services/web/public/src/main/subscription/team-invite-controller.js b/services/web/public/src/main/subscription/team-invite-controller.js index ae16c30f72..ce609cc05b 100644 --- a/services/web/public/src/main/subscription/team-invite-controller.js +++ b/services/web/public/src/main/subscription/team-invite-controller.js @@ -14,8 +14,8 @@ define(['base'], App => App.controller('TeamInviteController', function($scope, $http) { $scope.inflight = false - if (hasPersonalSubscription) { - $scope.view = 'personalSubscription' + if (hasIndividualRecurlySubscription) { + $scope.view = 'hasIndividualRecurlySubscription' } else { $scope.view = 'teamInvite' }