mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
Fix: pet tests
This commit is contained in:
@@ -46,7 +46,7 @@ export default function hatch (user, req = {}) {
|
||||
};
|
||||
user.items.eggs = {
|
||||
...user.items.eggs,
|
||||
[egg]: user.items.eggs - 1,
|
||||
[egg]: Number.isInteger(user.items.eggs) ? user.items.eggs - 1 : 0,
|
||||
};
|
||||
user.items.hatchingPotions[hatchingPotion] -= 1;
|
||||
if (user.markModified) {
|
||||
|
||||
Reference in New Issue
Block a user