From c1f5c0198a8623aad87939dceafaecb628411e84 Mon Sep 17 00:00:00 2001 From: Louis Jordan Date: Thu, 5 Dec 2024 15:02:53 +0000 Subject: [PATCH] fix: buttons --- .../talk-to-santa/app/(main)/(santa)/page.tsx | 2 +- .../talk-to-santa/components/santa-card.tsx | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/examples/conversational-ai/talk-to-santa/app/(main)/(santa)/page.tsx b/examples/conversational-ai/talk-to-santa/app/(main)/(santa)/page.tsx index 2212dbd..3455a21 100644 --- a/examples/conversational-ai/talk-to-santa/app/(main)/(santa)/page.tsx +++ b/examples/conversational-ai/talk-to-santa/app/(main)/(santa)/page.tsx @@ -307,7 +307,7 @@ export default function Page() { )} - {conversation.status === "connected" && ( + {conversation.status === "connected" && !isEndingCall && (
{ + setIsOpen(false); await conversation.endSession(); window.location.reload(); }} @@ -142,7 +143,10 @@ export function SantaCard({