mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-03-01 18:06:14 +08:00
update
This commit is contained in:
parent
c526ff80b5
commit
c00ebbea4f
@ -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 ? <VoiceOffIcon /> : <VoiceIcon />}
|
||||
onClick={toggleRecording}
|
||||
disabled={!isConnected}
|
||||
type={isRecording ? "danger" : "primary"}
|
||||
type={isRecording ? "danger" : isConnected ? "primary" : null}
|
||||
/>
|
||||
</div>
|
||||
<div className={styles["icon-center"]}>{status}</div>
|
||||
|
Loading…
Reference in New Issue
Block a user