From 1c7081495f5d78be23fd4ee337c1a5bf9fc23a24 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Tue, 17 Sep 2013 12:52:51 -0400 Subject: [PATCH] misc cleanup --- public/js/controllers/notificationCtrl.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/public/js/controllers/notificationCtrl.js b/public/js/controllers/notificationCtrl.js index 11b41a7914..74d65a4989 100644 --- a/public/js/controllers/notificationCtrl.js +++ b/public/js/controllers/notificationCtrl.js @@ -17,19 +17,15 @@ habitrpg.controller('NotificationCtrl', $rootScope.$watch('user.stats.gp', function(after, before) { if (after == before) return; - var bonus, money; var money = after - before; Notification.gp(money); //Append Bonus - bonus = User.user._tmp.streakBonus; + var bonus = User.user._tmp.streakBonus; if ((money > 0) && !!bonus) { - if (bonus < 0.01) { - bonus = 0.01; - } + if (bonus < 0.01) bonus = 0.01; Notification.text("+ " + Notification.coins(bonus) + " Streak Bonus!"); - delete User.user._tmp.streakBonus; } });