From cd97cc1e24b2351214e301bdae0822ec1f64c230 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Sun, 27 Oct 2013 13:44:04 +0100 Subject: [PATCH] hotfix for streak bonus being given when selling item for gold --- public/js/controllers/notificationCtrl.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/js/controllers/notificationCtrl.js b/public/js/controllers/notificationCtrl.js index 3052b3cbff..f5341d973e 100644 --- a/public/js/controllers/notificationCtrl.js +++ b/public/js/controllers/notificationCtrl.js @@ -24,6 +24,7 @@ habitrpg.controller('NotificationCtrl', if ((money > 0) && !!bonus) { if (bonus < 0.01) bonus = 0.01; Notification.text("+ " + Notification.coins(bonus) + " Streak Bonus!"); + delete User.user._tmp.streakBonus; } });