From c00ebbea4f774e15358c0a9410f807177931cff0 Mon Sep 17 00:00:00 2001 From: lloydzhou Date: Thu, 7 Nov 2024 17:40:03 +0800 Subject: [PATCH] update --- app/components/realtime-chat/realtime-chat.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/components/realtime-chat/realtime-chat.tsx b/app/components/realtime-chat/realtime-chat.tsx index 9f79dc20257..44dc21de91f 100644 --- a/app/components/realtime-chat/realtime-chat.tsx +++ b/app/components/realtime-chat/realtime-chat.tsx @@ -106,7 +106,6 @@ export function RealtimeChat({ } } catch (error) { console.error("Set message failed:", error); - setStatus("Set message failed"); } } catch (error) { console.error("Connection failed:", error); @@ -303,7 +302,7 @@ export function RealtimeChat({ icon={isRecording ? : } onClick={toggleRecording} disabled={!isConnected} - type={isRecording ? "danger" : "primary"} + type={isRecording ? "danger" : isConnected ? "primary" : null} />
{status}