mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-12 15:05:30 +00:00
Fix: remove unnecessary reassigment
This commit is contained in:
parent
4b4cc61031
commit
2c65b3a6a3
1 changed files with 2 additions and 4 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue