Commit ae4c0309 authored by Choi Ga Young's avatar Choi Ga Young
Browse files

수정중

parent 1cea3fef
import React, { useState, useEffect } from 'react'
import React, { useState } from 'react'
import axios from 'axios';
import { Row, Col, Modal, Button, Form, Alert } from 'react-bootstrap';
import catchErrors from '../utils/catchErrors';
......
......@@ -102,7 +102,7 @@ function Home() {
}
useEffect(() => {
if (!(singleChat == "")) {
if (!(singleChat === "")) {
socket.emit("chat", {
roomInfo: roomCode,
sendInfo: {
......@@ -117,7 +117,7 @@ function Home() {
}, [singleChat])
useEffect(() => {
if (!(sysmsg == '')) {
if (!(sysmsg === '')) {
socket.emit("chat", {
roomInfo: roomCode,
sendInfo: {
......
......@@ -172,4 +172,4 @@ const dbChat = async (req, res) => {
res.json(chatlist)
}
export default { makeRoom, getClosedList, getOpenList, getRoomName, changemember, roomInf, unreadMessage, dbChat }
export default { makeRoom, getClosedList, getOpenList, getRoomName, changemember, roomInf, unreadMessage, dbChat, deleteUserId }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment