diff --git a/website/client-old/js/services/groupServices.js b/website/client-old/js/services/groupServices.js index c3f74ca0f8..b70b3a3189 100644 --- a/website/client-old/js/services/groupServices.js +++ b/website/client-old/js/services/groupServices.js @@ -213,7 +213,7 @@ angular.module('habitrpg') function inviteOrStartParty (group) { Analytics.track({'hitType':'event','eventCategory':'button','eventAction':'click','eventLabel':'Invite Friends'}); - if (group.type === "party" || $location.$$path === "/options/groups/party") { + if (group && group.type === "party" || $location.$$path === "/options/groups/party") { group.type = 'party'; $rootScope.openModal('invite-party', {