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) => {