go back on end session

This commit is contained in:
Даниил Ивлев 2025-09-04 23:55:22 +05:00
parent f31af7ef11
commit 22c46c133f
2 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export default function InterviewPage() {
const handleInterviewEnd = () => {
// Перенаправляем обратно к вакансии или на главную страницу
router.push('/')
router.back()
}
if (isLoading) {

View File

@ -123,6 +123,9 @@ function InterviewRoom({ resumeId, onEnd }: InterviewSessionProps) {
isConnected: false,
connectionState: 'disconnected'
}))
if (onEnd) {
onEnd()
}
}
const handleDataReceived = (payload: Uint8Array, participant: any) => {