diff --git a/modals/groupStudy/AttendCheckModal.tsx b/modals/groupStudy/AttendCheckModal.tsx index dec8751b..628391f9 100644 --- a/modals/groupStudy/AttendCheckModal.tsx +++ b/modals/groupStudy/AttendCheckModal.tsx @@ -2,6 +2,7 @@ import { Button } from "@chakra-ui/react"; import dayjs from "dayjs"; import { useState } from "react"; import styled from "styled-components"; +import { GROUP_STUDY } from "../../constants/keys/queryKeys"; import { useResetQueryData } from "../../hooks/custom/CustomHooks"; import { useCompleteToast } from "../../hooks/custom/CustomToast"; @@ -36,7 +37,7 @@ function AttendCheckModal({ const { mutate } = useGroupAttendMutation(id, { onSuccess() { completeToast("free", "저장되었습니다."); - resetQueryData([GROUP_STUDY_ALL]); + resetQueryData([GROUP_STUDY]); setIsModal(false); }, });