diff --git a/frontend/src/components/pages/MobileCallPage.tsx b/frontend/src/components/pages/MobileCallPage.tsx index e766c3e..39191d2 100644 --- a/frontend/src/components/pages/MobileCallPage.tsx +++ b/frontend/src/components/pages/MobileCallPage.tsx @@ -300,7 +300,10 @@ export function MobileCallPage({ assistantId }: { assistantId: string }) { }, [startCall]); useEffect(() => { - if (status === "idle" || status === "failed") stopCamera(); + if (status === "idle" || status === "failed") { + stopCamera(); + setView("camera"); + } }, [status, stopCamera]); const error = previewError || cameraError; @@ -325,7 +328,7 @@ export function MobileCallPage({ assistantId }: { assistantId: string }) {
- {view === "chat" && } + {view === "chat" && inCall && }