Corrected watch check

4fc04fea24 (commitcomment-11784493)
This commit is contained in:
Blade Barringer
2015-06-21 10:44:59 -05:00
parent 4fc04fea24
commit 11fcb54c03
2 changed files with 4 additions and 4 deletions

View File

@@ -154,7 +154,7 @@ habitrpg.controller('NotificationCtrl',
});
// Quest invitation modal
$scope.$watch('user.party.quest.RSVPNeeded && (user.party.quest.completed !== false && user.party.quest.completed !== true)', function(after, before){
$scope.$watch('user.party.quest.RSVPNeeded && !user.party.quest.completed', function(after, before){
if (after != true) return;
$rootScope.openModal('questInvitation', {controller:'PartyCtrl'});
});