Skip to content

Commit

Permalink
Fix bug in chat
Browse files Browse the repository at this point in the history
  • Loading branch information
jahongiry committed Mar 5, 2024
1 parent a5dbc73 commit 7c28730
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/pages/chat/Chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ import send_icon from '../../img/icons/send_icon.svg';
import ChatFinishBuyer from './chatFinish/chatFinishBuyer';
import ChatFinishSeller from './chatFinish/chatFinishSeller';

function preventScroll(e) {
e.preventDefault();
e.stopPropagation();
return false;
}

document.addEventListener('scroll', preventScroll, { passive: false });

const Chat = () => {
const dispatch = useDispatch();
const [inputValue, setInputValue] = useState('');
Expand All @@ -35,7 +27,7 @@ const Chat = () => {
const user = useSelector((state) => state.auth.user);
const [isPopupVisible, setIsPopupVisible] = useState(false);
const messagesEndRef = useRef(null);
console.log(chats[selectedChatId].offer.status);
// console.log(chats[selectedChatId].offer.status);

useEffect(() => {
if (!selectedChatId || !chatUsers) {
Expand Down

0 comments on commit 7c28730

Please sign in to comment.