Skip to content

Commit

Permalink
Added Chats UI
Browse files Browse the repository at this point in the history
  • Loading branch information
debojitsaha committed Nov 2, 2022
1 parent e37cf6a commit 0e54bb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/miscellaneous/UpdateGroupChatModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const UpdateGroupChatModal = ({ fetchAgain, setFetchAgain }) => {
};

const handleAddUser = async (userToAdd) => {
console.log(selectedChat.users);
// console.log(selectedChat.users);
if (selectedChat.users.find((u) => u._id === userToAdd._id)) {
toast({
title: "User already present",
Expand Down Expand Up @@ -123,7 +123,7 @@ const UpdateGroupChatModal = ({ fetchAgain, setFetchAgain }) => {
);

setSelectedChat(data);
console.log(selectedChat.users);
// console.log(selectedChat.users);
setFetchAgain(!fetchAgain);
setLoading(false);
} catch (error) {
Expand Down

0 comments on commit 0e54bb1

Please sign in to comment.