From f454340d29e81407bfb32c137317f70f593d4e74 Mon Sep 17 00:00:00 2001 From: "seer-by-sentry[bot]" <157164994+seer-by-sentry[bot]@users.noreply.github.com> Date: Wed, 25 Jun 2025 13:53:51 +0000 Subject: [PATCH] Fix: Prevent crash when stop function is undefined --- components/Rufus.tsx | 2 +- components/VapiOverlay.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); };