mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
fix Stable component to correctly count pets (#9182)
This commit is contained in:
parent
ca81ff5af6
commit
f2fed7ea39
1 changed files with 2 additions and 1 deletions
|
|
@ -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}`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue