mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
Merge pull request #11637 from Xaz16/trigger-vue-reactivity-for-user
Trigger vue reactivity for user
This commit is contained in:
@@ -41,7 +41,10 @@ export default function hatch (user, req = {}) {
|
||||
throw new NotAuthorized(i18n.t('messageAlreadyPet', req.language));
|
||||
}
|
||||
|
||||
user.items.pets[pet] = 5;
|
||||
user.items.pets = {
|
||||
...user.items.pets,
|
||||
[pet]: 5,
|
||||
};
|
||||
user.items.eggs[egg] -= 1;
|
||||
user.items.hatchingPotions[hatchingPotion] -= 1;
|
||||
if (user.markModified) {
|
||||
|
||||
Reference in New Issue
Block a user