mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
revert drop notification change
This commit is contained in:
parent
b723bc17dd
commit
e722a064c8
1 changed files with 2 additions and 1 deletions
|
|
@ -29,7 +29,8 @@ habitrpg.controller('NotificationCtrl',
|
|||
});
|
||||
|
||||
$rootScope.$watch('user._tmp.drop', function(after, before){
|
||||
if (!after) return;
|
||||
// won't work when getting the same item twice?
|
||||
if (after == before || !after) return;
|
||||
var type = after.type === 'HatchingPotion' ? 'hatchingPotions' : (after.type.toLowerCase() + 's')
|
||||
if(!User.user.items[type][after.name]){
|
||||
User.user.items[type][after.name] = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue