diff --git a/services/web/app/coffee/Features/Subscription/TeamInvitesHandler.coffee b/services/web/app/coffee/Features/Subscription/TeamInvitesHandler.coffee index 9f6797bcb9..3164585f7a 100644 --- a/services/web/app/coffee/Features/Subscription/TeamInvitesHandler.coffee +++ b/services/web/app/coffee/Features/Subscription/TeamInvitesHandler.coffee @@ -41,9 +41,11 @@ module.exports = TeamInvitesHandler = createDomainInvite: (user, licence, callback) -> logger.log {licence, email: user.email}, "Creating domain team invite" + inviterName = licence.name.replace(/\s+licence$/i, licence.name) + SubscriptionLocator.getSubscription licence.subscription_id, (error, subscription) -> return callback(error) if error? - createInvite(subscription, user.email, licence.name, callback) + createInvite(subscription, user.email, inviterName, callback) acceptInvite: (token, userId, callback) -> logger.log {userId}, "Accepting invite"