From f5e39fe2d70134317ab37363df3cdf7f6dbd9aa0 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Wed, 8 Nov 2023 12:34:15 +0700 Subject: [PATCH] Fix showing name of active model when delete conversation --- web/hooks/useDeleteConversation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/hooks/useDeleteConversation.ts b/web/hooks/useDeleteConversation.ts index c8125408f..8826aab5b 100644 --- a/web/hooks/useDeleteConversation.ts +++ b/web/hooks/useDeleteConversation.ts @@ -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)