fixing bug of not untuning

This commit is contained in:
talksik
2022-06-25 11:37:00 -05:00
parent 2da1dd1490
commit a859717b7e
@@ -214,7 +214,14 @@ export function ConversationProvider({ children }: { children: React.ReactNode }
*/
if (!conversationId) {
setSelectedConversation(undefined);
setSelectedConversation((prevConversation) => {
// untuned from previous line
if (prevConversation?._id) {
handleUntuneFromLine(prevConversation._id.toString());
}
return undefined;
});
return;
}