Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/components/summary/study-info-summary.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use client';

import { useQueryClient } from '@tanstack/react-query';
import dayjs from 'dayjs';
import { ChevronDown, ChevronUp } from 'lucide-react';
import { useRouter } from 'next/navigation';
Expand All @@ -24,6 +25,7 @@ interface Props {

export default function SummaryStudyInfo({ data }: Props) {
const router = useRouter();
const queryClient = useQueryClient();
const [isExpanded, setIsExpanded] = useState(false);
const memberId = useUserStore((state) => state.memberId);

Expand Down Expand Up @@ -125,7 +127,10 @@ export default function SummaryStudyInfo({ data }: Props) {
alert('스터디 링크가 복사되었습니다!');
};

const handleApplySuccess = () => {
const handleApplySuccess = async () => {
await queryClient.invalidateQueries({
queryKey: ['groupStudyMemberStatus', groupStudyId],
});
if (price > 0) {
router.push(`/payment/${groupStudyId}`);
}
Expand Down
Loading