Skip to content

Commit

Permalink
Fix user count
Browse files Browse the repository at this point in the history
  • Loading branch information
Kexort committed Nov 13, 2024
1 parent 79c0d21 commit 42d089f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MainRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ const MainRouter = (): ReactElement => {

useEffect(() => {
calcActivity();
}, [loadedTalks, recentSessions]);
}, [recentSessions]);

const fetchNotes = async () => {
const privKey = getPrivateKey();
Expand Down
2 changes: 1 addition & 1 deletion src/components/Spaces/SpacesItem/SpacesItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const SpacesItem: React.FC<RecentRoomsItemProps> = ({
<div className="recent-rooms__item__title">{title}</div>
</div>
<div className="recent-rooms-item__right">
<ActiveVisitors number={numberOfActiveUsers} withIcon={true} />
{numberOfActiveUsers > 0 ? <ActiveVisitors number={numberOfActiveUsers} withIcon={true}/> : <></> }
<RightArrowIcon />
</div>
</div>
Expand Down

0 comments on commit 42d089f

Please sign in to comment.