Skip to content

Commit

Permalink
Update GroupShow.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorJC3 authored Jan 8, 2024
1 parent 19c454c commit d0af822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/GroupShow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function GroupShow() {
}, [group, token]);

const joined = useMemo(
() => group?.users?.find((user) => user.id === profile?.id) !== null,
() => group?.users?.some((user) => user.id === profile?.id),
[group, profile],
);

Expand Down

0 comments on commit d0af822

Please sign in to comment.