Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Nov 7, 2024
1 parent 0eaf262 commit c550208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pageTemplates/group/detail/GroupHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useRouter } from "next/router";
import { useSession } from "next-auth/react";
import { useRouter } from "next/router";
import { useState } from "react";
import { useQueryClient } from "react-query";
import { useSetRecoilState } from "recoil";
Expand All @@ -24,7 +24,7 @@ function GroupHeader({ group }: IGroupHeader) {
const completeToast = useCompleteToast();
const router = useRouter();
const isAdmin = group.organizer.uid === session?.user.uid;
const isMember = group.participants.some((par) => par.user.uid === session?.user.uid);
const isMember = group.participants.some((par) => par.user?.uid === session?.user.uid);

const [isSettigModal, setIsSettingModal] = useState(false);
const setTransferGroup = useSetRecoilState(transferGroupDataState);
Expand Down

0 comments on commit c550208

Please sign in to comment.