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 axios from 'axios';
import { Row, Col, Modal, Button, Form, Alert } from 'react-bootstrap'; import { Row, Col, Modal, Button, Form, Alert } from 'react-bootstrap';
import catchErrors from '../utils/catchErrors'; import catchErrors from '../utils/catchErrors';
......
...@@ -102,7 +102,7 @@ function Home() { ...@@ -102,7 +102,7 @@ function Home() {
} }
useEffect(() => { useEffect(() => {
if (!(singleChat == "")) { if (!(singleChat === "")) {
socket.emit("chat", { socket.emit("chat", {
roomInfo: roomCode, roomInfo: roomCode,
sendInfo: { sendInfo: {
...@@ -117,7 +117,7 @@ function Home() { ...@@ -117,7 +117,7 @@ function Home() {
}, [singleChat]) }, [singleChat])
useEffect(() => { useEffect(() => {
if (!(sysmsg == '')) { if (!(sysmsg === '')) {
socket.emit("chat", { socket.emit("chat", {
roomInfo: roomCode, roomInfo: roomCode,
sendInfo: { sendInfo: {
......
...@@ -172,4 +172,4 @@ const dbChat = async (req, res) => { ...@@ -172,4 +172,4 @@ const dbChat = async (req, res) => {
res.json(chatlist) 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