fix: audio error message

This commit is contained in:
jialin
2024-12-03 17:33:49 +08:00
parent 83294abaf0
commit 20f809740c
10 changed files with 47 additions and 17 deletions
@@ -120,7 +120,7 @@ const GroundLeft: React.FC<MessageProps> = forwardRef((props, ref) => {
}
);
if (result?.status_code !== 200) {
if (result?.status_code && result?.status_code !== 200) {
setTokenResult({
error: true,
errorMessage:
@@ -211,6 +211,7 @@ const GroundLeft: React.FC<MessageProps> = forwardRef((props, ref) => {
setIsRecording(val);
setAudioData(null);
setTokenResult(null);
setMessageList([]);
console.log('data===', val);
}, []);