mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
Fix: remove unnecessary reassigment
This commit is contained in:
@@ -124,10 +124,8 @@ export default function randomDrop (user, options, req = {}, analytics) {
|
||||
...user.items.hatchingPotions,
|
||||
[drop.key]: user.items.hatchingPotions[drop.key] || 0,
|
||||
};
|
||||
user.items.hatchingPotions = {
|
||||
...user.items.hatchingPotions,
|
||||
[drop.key]: drop.key + 1,
|
||||
};
|
||||
user.items.hatchingPotions[drop.key] += 1;
|
||||
|
||||
if (user.markModified) user.markModified('items.hatchingPotions');
|
||||
|
||||
drop.type = 'HatchingPotion';
|
||||
|
||||
Reference in New Issue
Block a user