mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 05:37:22 +01:00
Fix: reassign object for user.items.food to trigger change in vue view
This commit is contained in:
@@ -95,7 +95,10 @@ export default function feed (user, req = {}) {
|
||||
}
|
||||
}
|
||||
|
||||
user.items.food[food.key] -= 1;
|
||||
user.items.food = {
|
||||
...user.items.food,
|
||||
[food.key]: user.items.food[food.key] - 1,
|
||||
};
|
||||
if (user.markModified) user.markModified('items.food');
|
||||
|
||||
forEach(content.animalColorAchievements, achievement => {
|
||||
|
||||
Reference in New Issue
Block a user