diff --git a/components/custom/history.tsx b/components/custom/history.tsx index 8c8b2725..b8bd5715 100644 --- a/components/custom/history.tsx +++ b/components/custom/history.tsx @@ -74,7 +74,7 @@ export const History = ({ user }: { user: User | undefined }) => { success: () => { mutate((history) => { if (history) { - return history.filter((h) => h.id !== id); + return history.filter((h) => h.id !== deleteId); } }); return "Chat deleted successfully";