Skip to content

Commit

Permalink
fix Stable component to correctly count pets (#9182)
Browse files Browse the repository at this point in the history
  • Loading branch information
trvrfrd authored and SabreCat committed Oct 15, 2017
1 parent ca81ff5 commit f2fed7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/client/components/inventory/stable/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,8 @@
let countAll = animals.length;
let countOwned = _filter(animals, (a) => {
return a.isOwned();
// when counting pets, include those that have been raised into mounts
return a.isOwned() || a.mountOwned();
});
return `${countOwned.length}/${countAll}`;
Expand Down

0 comments on commit f2fed7e

Please sign in to comment.