go back on end session
This commit is contained in:
parent
f31af7ef11
commit
22c46c133f
@ -14,7 +14,7 @@ export default function InterviewPage() {
|
|||||||
|
|
||||||
const handleInterviewEnd = () => {
|
const handleInterviewEnd = () => {
|
||||||
// Перенаправляем обратно к вакансии или на главную страницу
|
// Перенаправляем обратно к вакансии или на главную страницу
|
||||||
router.push('/')
|
router.back()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
|
@ -123,6 +123,9 @@ function InterviewRoom({ resumeId, onEnd }: InterviewSessionProps) {
|
|||||||
isConnected: false,
|
isConnected: false,
|
||||||
connectionState: 'disconnected'
|
connectionState: 'disconnected'
|
||||||
}))
|
}))
|
||||||
|
if (onEnd) {
|
||||||
|
onEnd()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleDataReceived = (payload: Uint8Array, participant: any) => {
|
const handleDataReceived = (payload: Uint8Array, participant: any) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user