Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Nov 6, 2024
1 parent 2f4baae commit 34edfd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modals/groupStudy/AttendCheckModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -36,7 +37,7 @@ function AttendCheckModal({
const { mutate } = useGroupAttendMutation(id, {
onSuccess() {
completeToast("free", "저장되었습니다.");
resetQueryData([GROUP_STUDY_ALL]);
resetQueryData([GROUP_STUDY]);
setIsModal(false);
},
});
Expand Down

0 comments on commit 34edfd6

Please sign in to comment.