Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimanyurajeesh committed Dec 26, 2024
1 parent a8ddb1f commit d3585b1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/Users/UserListAndCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,9 @@ export const UserStatusIndicator = ({
className?: string;
addPadding?: boolean;
}) => {
const authUser = useAuthUser(); // Get the authenticated user's details
const isAuthUser = user.id === authUser.id; // Check if the user is the authenticated user
const cur_online = isUserOnline(user) || isAuthUser; // Assume always online if it's the authenticated user

const authUser = useAuthUser();
const isAuthUser = user.id === authUser.id;
const cur_online = isUserOnline(user) || isAuthUser;
const { t } = useTranslation();

return (
Expand Down

0 comments on commit d3585b1

Please sign in to comment.