fix(quests): Basilist error with no party

This commit is contained in:
Sabe Jones
2016-11-07 15:30:44 +00:00
parent 593178a46a
commit 696317ea8a

View File

@@ -213,7 +213,7 @@ angular.module('habitrpg')
function inviteOrStartParty (group) { function inviteOrStartParty (group) {
Analytics.track({'hitType':'event','eventCategory':'button','eventAction':'click','eventLabel':'Invite Friends'}); 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'; group.type = 'party';
$rootScope.openModal('invite-party', { $rootScope.openModal('invite-party', {