diff --git a/public/js/controllers/notificationCtrl.js b/public/js/controllers/notificationCtrl.js index c980ac13f8..b62c1af86d 100644 --- a/public/js/controllers/notificationCtrl.js +++ b/public/js/controllers/notificationCtrl.js @@ -60,7 +60,7 @@ habitrpg.controller('NotificationCtrl', }); $rootScope.$watch('user.achievements.streak', function(after, before){ - if(after == before || after < before) return; + if(before == undefined || after == before || after < before) return; $rootScope.modals.achievements.streak = true; });