Skip to content

Commit f19cfcc

Browse files
committed
fix: weird error with length
1 parent 71df9f3 commit f19cfcc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

apps/stardew.app/src/pages/animals.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ export default function Animals() {
9494

9595
// Check if they have animal data (not just empty object)
9696
const hasAnimalData =
97-
activePlayer?.animals &&
98-
(activePlayer.animals.farmAnimals?.length > 0 ||
99-
activePlayer.animals.pets?.length > 0 ||
100-
activePlayer.animals.horse);
97+
activePlayer?.animals && Object.keys(activePlayer.animals).length > 0;
10198

10299
// Animal image URLs - you can replace these with your external URLs
103100
const animalImages: Record<string, string> = {

0 commit comments

Comments
 (0)