Skip to content

Commit

Permalink
fix: formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
disha1202 committed Oct 21, 2024
1 parent 7ff5f05 commit 43a9229
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/components/UserPortal/ChatRoom/ChatRoom.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const MESSAGE_SENT_TO_CHAT_MOCK = [
},
result: {
data: {

messageSentToChat: {
_id: '668ec1f1364e03ac47a151',
createdAt: '2024-07-10T17:16:33.248Z',
Expand Down
3 changes: 1 addition & 2 deletions src/components/UserPortal/ChatRoom/ChatRoom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ export default function chatRoom(props: InterfaceChatRoomProps): JSX.Element {
},
});


const { data: chatData, refetch: chatRefetch } = useQuery(CHAT_BY_ID, {
variables: {
id: props.selectedContact,
Expand Down Expand Up @@ -169,7 +168,7 @@ export default function chatRoom(props: InterfaceChatRoomProps): JSX.Element {
} else {
chatRefetch({
id: messageSubscriptionData?.data.data.messageSentToChat
.chatMessageBelongsTo['_id']
.chatMessageBelongsTo['_id'],
});
}
},
Expand Down

0 comments on commit 43a9229

Please sign in to comment.