Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Nov 7, 2024
1 parent c526ff8 commit c00ebbe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/components/realtime-chat/realtime-chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -303,7 +302,7 @@ export function RealtimeChat({
icon={isRecording ? <VoiceOffIcon /> : <VoiceIcon />}
onClick={toggleRecording}
disabled={!isConnected}
type={isRecording ? "danger" : "primary"}
type={isRecording ? "danger" : isConnected ? "primary" : null}
/>
</div>
<div className={styles["icon-center"]}>{status}</div>
Expand Down

0 comments on commit c00ebbe

Please sign in to comment.