mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
hotfix for streak bonus being given when selling item for gold
This commit is contained in:
@@ -24,6 +24,7 @@ habitrpg.controller('NotificationCtrl',
|
|||||||
if ((money > 0) && !!bonus) {
|
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!");
|
Notification.text("+ " + Notification.coins(bonus) + " Streak Bonus!");
|
||||||
|
delete User.user._tmp.streakBonus;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user