From 37d4d0930c77f4dcae9cb7dbd575480176cb57ae Mon Sep 17 00:00:00 2001 From: NotII <46204250+NotII@users.noreply.github.com> Date: Mon, 24 Mar 2025 00:30:57 +0000 Subject: [PATCH] Update ChatDetail.tsx --- components/dashboard/ChatDetail.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dashboard/ChatDetail.tsx b/components/dashboard/ChatDetail.tsx index 8f45329..e7d0ef0 100644 --- a/components/dashboard/ChatDetail.tsx +++ b/components/dashboard/ChatDetail.tsx @@ -268,7 +268,7 @@ export default function ChatDetail({ chatId }: { chatId: string }) { // Play notification sound if there are new buyer messages if (hasNewMessages) { const newMessages = response.messages.slice(messages.length); - const hasNewBuyerMessages = newMessages.some(msg => msg.sender === 'buyer'); + const hasNewBuyerMessages = newMessages.some((msg: Message) => msg.sender === 'buyer'); if (hasNewBuyerMessages) { playNotificationSound();