From 22c46c133f058c9a58de84c4b049a714b86638cf Mon Sep 17 00:00:00 2001 From: tdjx Date: Thu, 4 Sep 2025 23:55:22 +0500 Subject: [PATCH] go back on end session --- app/interview/[id]/page.tsx | 2 +- components/InterviewSession.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/interview/[id]/page.tsx b/app/interview/[id]/page.tsx index a2aede0..96b377d 100644 --- a/app/interview/[id]/page.tsx +++ b/app/interview/[id]/page.tsx @@ -14,7 +14,7 @@ export default function InterviewPage() { const handleInterviewEnd = () => { // Перенаправляем обратно к вакансии или на главную страницу - router.push('/') + router.back() } if (isLoading) { diff --git a/components/InterviewSession.tsx b/components/InterviewSession.tsx index 490b165..4be489a 100644 --- a/components/InterviewSession.tsx +++ b/components/InterviewSession.tsx @@ -123,6 +123,9 @@ function InterviewRoom({ resumeId, onEnd }: InterviewSessionProps) { isConnected: false, connectionState: 'disconnected' })) + if (onEnd) { + onEnd() + } } const handleDataReceived = (payload: Uint8Array, participant: any) => {