From d8559d30f0392c2bbfcff2c63546d7422dfc5fbb Mon Sep 17 00:00:00 2001 From: doyou1 Date: Wed, 7 Jan 2026 20:47:06 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B7=B8=EB=A3=B9=EC=8A=A4=ED=84=B0?= =?UTF-8?q?=EB=94=94=20=EC=A2=85=EB=A3=8C/=EC=82=AD=EC=A0=9C=20=EC=8B=9C?= =?UTF-8?q?=20=EB=9D=BC=EC=9A=B0=ED=8C=85=20=EB=B0=8F=20=EC=97=90=EB=9F=AC?= =?UTF-8?q?=20=EC=B2=98=EB=A6=AC=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - onSettled에서 onSuccess로 라우팅 이동하여 성공 시에만 페이지 전환 - 스터디 종료 시 onError 핸들러 추가 - 라우팅 경로를 /study에서 /group-study로 수정 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- src/components/pages/group-study-detail-page.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/pages/group-study-detail-page.tsx b/src/components/pages/group-study-detail-page.tsx index c79b08f5..26bf05ba 100644 --- a/src/components/pages/group-study-detail-page.tsx +++ b/src/components/pages/group-study-detail-page.tsx @@ -86,10 +86,13 @@ export default function StudyDetailPage({ group_study_id: String(groupStudyId), }); alert('스터디가 종료되었습니다.'); + router.push('/group-study'); + }, + onError: () => { + alert('스터디 종료에 실패하였습니다.'); }, onSettled: () => { setShowModal(false); - router.push('/study'); }, }, ); @@ -114,12 +117,12 @@ export default function StudyDetailPage({ group_study_id: String(groupStudyId), }); alert('스터디가 삭제되었습니다.'); + router.push('/group-study'); }, onError: () => { alert('스터디 삭제에 실패하였습니다.'); }, onSettled: () => { - router.push('/study'); setShowModal(false); }, },