mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
fix problem of Cheetah Costume Set mystery items not staying put -- code is ugly, improve later
This commit is contained in:
@@ -1178,7 +1178,7 @@ api.wrap = (user, main=true) ->
|
||||
item = content.gear.flat[item]
|
||||
user.items.gear.owned[item.key] = true
|
||||
user.markModified? 'purchased.plan.mysteryItems'
|
||||
item.type = 'Mystery'
|
||||
item.notificationType = 'Mystery' # needed for website/public/js/controllers/notificationCtrl.js line 59 approx.
|
||||
analyticsData = {
|
||||
uuid: user._id,
|
||||
itemKey: item,
|
||||
|
||||
Reference in New Issue
Block a user