Merge remote-tracking branch 'origin/websocket' into chat_and_cache

This commit is contained in:
Gabriel Almeida 2023-04-26 01:05:43 -03:00
commit 1b8f4ce2bd
2 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ export default function ChatMessage({ chat }: { chat: ChatMessageType }) {
</div> </div>
{!chat.isSend ? ( {!chat.isSend ? (
<div className="w-full text-start flex items-center"> <div className="w-full text-start flex items-center">
<div className="w-full relative text-start inline-block text-gray-600 text-sm font-normal"> <div className=" relative text-start inline-block text-gray-600 text-sm font-normal">
{hidden && chat.thought && chat.thought !== "" && ( {hidden && chat.thought && chat.thought !== "" && (
<div <div
onClick={() => setHidden((prev) => !prev)} onClick={() => setHidden((prev) => !prev)}

View file

@ -115,9 +115,9 @@ export default function ChatModal({
console.log(data); console.log(data);
} }
} catch (error) { } catch (error) {
setErrorData({ title: event.data }); if(event.data!=="Error: 1005"){
if (newWs.readyState === newWs.CLOSED) { setErrorData({ title: event.data });
window.alert(error);
} }
} }
}; };