From 0768291ccb6b19abb427a5ee0bff16ccd2019b32 Mon Sep 17 00:00:00 2001 From: LSJ Date: Wed, 6 Nov 2024 21:09:51 +0900 Subject: [PATCH] . --- modals/groupStudy/InviteOuterModal.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modals/groupStudy/InviteOuterModal.tsx b/modals/groupStudy/InviteOuterModal.tsx index 93cf6ebbf..5bd5d6c51 100644 --- a/modals/groupStudy/InviteOuterModal.tsx +++ b/modals/groupStudy/InviteOuterModal.tsx @@ -1,8 +1,8 @@ import { Flex } from "@chakra-ui/react"; import { useParams } from "next/navigation"; import { useQueryClient } from "react-query"; +import { GROUP_STUDY } from "../../constants/keys/queryKeys"; -import { GROUP_STUDY_ALL } from "../../constants/keys/queryKeys"; import { useCompleteToast } from "../../hooks/custom/CustomToast"; import { useGroupWaitingStatusMutation } from "../../hooks/groupStudy/mutations"; import { IModal } from "../../types/components/modalTypes"; @@ -17,10 +17,9 @@ function InviteOuterModal({ setIsModal }: InviteOuterModalProps) { const { mutate: mutate2, isLoading } = useGroupWaitingStatusMutation(+id, { onSuccess() { completeToast("free", "가입되었습니다."); - queryClient.invalidateQueries([GROUP_STUDY_ALL]); + queryClient.invalidateQueries([GROUP_STUDY]); }, }); - const footerOptions: IFooterOptions = { main: {