mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
restore for...of
This commit is contained in:
@@ -24,12 +24,12 @@ export default function releaseMounts (user, req = {}, analytics) {
|
||||
user.items.currentMount = '';
|
||||
}
|
||||
|
||||
Object.keys(content.pets).forEach(mount => {
|
||||
for (const mount of Object.keys(content.pets)) {
|
||||
if (user.items.mounts[mount] === null || user.items.mounts[mount] === undefined) {
|
||||
giveMountMasterAchievement = false;
|
||||
}
|
||||
user.items.mounts[mount] = null;
|
||||
});
|
||||
}
|
||||
|
||||
if (user.markModified) user.markModified('items.mounts');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user