Skip to content

Commit

Permalink
Merge pull request #23 from realliance/ConnorJC3-patch-1
Browse files Browse the repository at this point in the history
Update GroupShow.tsx
  • Loading branch information
ChristopherJMiller authored Jan 8, 2024
2 parents 19c454c + d0af822 commit 7ff373e
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 7ff373e

Please sign in to comment.