Skip to content

Commit ec37cfe

Browse files
authored
fix: current conversation tip (#416)
1 parent db66d81 commit ec37cfe

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/components/Assistant/Chat.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,14 @@ const ChatAI = memo(
197197
async (value: string) => {
198198
try {
199199
console.log("init", isLogin, curChatEnd, activeChat?._id);
200-
if (!isLogin || !curChatEnd) {
200+
if (!isLogin) {
201201
addError("Please login to continue chatting");
202202
return;
203203
}
204+
if (!curChatEnd) {
205+
addError("Please wait for the current conversation to complete");
206+
return;
207+
}
204208
setShowPrevSuggestion(false);
205209
if (!activeChat?._id) {
206210
await createNewChat(value, activeChat, websocketSessionId);

0 commit comments

Comments
 (0)