mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Fix mystery set award to new subscribers (#7586)
* fix(mystery): flip da sign * test(subscription): check mystery box
This commit is contained in:
@@ -20,7 +20,7 @@ function revealMysteryItems (user) {
|
||||
moment().isAfter(shared.content.mystery[item.mystery].start) &&
|
||||
moment().isBefore(shared.content.mystery[item.mystery].end) &&
|
||||
!user.items.gear.owned[item.key] &&
|
||||
user.purchased.plan.mysteryItems.indexOf(item.key) !== -1
|
||||
user.purchased.plan.mysteryItems.indexOf(item.key) === -1
|
||||
) {
|
||||
user.purchased.plan.mysteryItems.push(item.key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user