From 1b83672c3be3d5e7789d778826ffd1921a1f777b Mon Sep 17 00:00:00 2001 From: Disha Date: Mon, 21 Oct 2024 12:28:13 +0530 Subject: [PATCH] fix: variable name --- src/components/UserPortal/ChatRoom/ChatRoom.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/UserPortal/ChatRoom/ChatRoom.tsx b/src/components/UserPortal/ChatRoom/ChatRoom.tsx index 1c431bda84..fab96322b3 100644 --- a/src/components/UserPortal/ChatRoom/ChatRoom.tsx +++ b/src/components/UserPortal/ChatRoom/ChatRoom.tsx @@ -169,8 +169,8 @@ export default function chatRoom(props: InterfaceChatRoomProps): JSX.Element { chatRefetch(); } else { chatRefetch({ - id: directMessageSubscriptionData?.data.data.messageSentToDirectChat - .directChatMessageBelongsTo['_id'], + id: messageSubscriptionData?.data.data.messageSentToChat + .chatMessageBelongsTo['_id'] }); } },