Fix showing name of active model when delete conversation

This commit is contained in:
Faisal Amir 2023-11-08 12:34:15 +07:00
parent f4d390cb4f
commit f5e39fe2d7

View File

@ -47,7 +47,7 @@ export default function useDeleteConversation() {
deleteMessages(activeConvoId)
toaster({
title: 'Succes delete a chat',
description: `Delete chat with ${activeModel} has been completed`,
description: `Delete chat with ${activeModel?.name} has been completed`,
})
if (currentConversations.length > 0) {
setActiveConvoId(currentConversations[0]._id)