We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db66d81 commit ec37cfeCopy full SHA for ec37cfe
1 file changed
src/components/Assistant/Chat.tsx
@@ -197,10 +197,14 @@ const ChatAI = memo(
197
async (value: string) => {
198
try {
199
console.log("init", isLogin, curChatEnd, activeChat?._id);
200
- if (!isLogin || !curChatEnd) {
+ if (!isLogin) {
201
addError("Please login to continue chatting");
202
return;
203
}
204
+ if (!curChatEnd) {
205
+ addError("Please wait for the current conversation to complete");
206
+ return;
207
+ }
208
setShowPrevSuggestion(false);
209
if (!activeChat?._id) {
210
await createNewChat(value, activeChat, websocketSessionId);
0 commit comments