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();