diff --git a/components/Rufus.tsx b/components/Rufus.tsx index 3843961..2cf9db4 100644 --- a/components/Rufus.tsx +++ b/components/Rufus.tsx @@ -75,7 +75,7 @@ const Rufus = () => { )} {callStatus === CALL_STATUS.ACTIVE && ( - + stop?.()}> Stop Call diff --git a/components/VapiOverlay.tsx b/components/VapiOverlay.tsx index 6afe896..0a88217 100644 --- a/components/VapiOverlay.tsx +++ b/components/VapiOverlay.tsx @@ -21,7 +21,7 @@ const VapiOverlay = () => { }, [callStatus]); const onEndCall = () => { - stop(); + stop?.(); setShowOverlay(false); };