mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 01:29:21 +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 countAll = animals.length;
|
||||||
let countOwned = _filter(animals, (a) => {
|
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}`;
|
return `${countOwned.length}/${countAll}`;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue