From eb9db5b6120c784296ed5d18ab5d27acfd98804f Mon Sep 17 00:00:00 2001 From: Cole Gleason Date: Mon, 6 Jan 2014 16:43:56 -0600 Subject: [PATCH] Don't show Streak achievement modal on Fix Character Values if it was previously undefined --- public/js/controllers/notificationCtrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; });