Skip to content

Commit

Permalink
Fix usersCount analytics field
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-asriyan committed Aug 30, 2024
1 parent 60a5306 commit d528edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analytics.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
paused: get(room.paused),
srcType,
srcUrl,
usersCount: get(room.users)?.length || 1, // yourself
usersCount: (get(room.users)?.length || 0) + 1, // yourself
isExample,
});
}
Expand Down

0 comments on commit d528edc

Please sign in to comment.