Skip to content

Commit

Permalink
FIX: 배포에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kimtree24 committed Dec 5, 2024
1 parent 9bfd579 commit 0acae19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/userpage/MessageDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ const MessageDetail = () => {
userA = localStorage.getItem("localReceiverId")
}

const [messages, setMessages] = useState([]);

const [newMessage, setNewMessage] = useState("");

useEffect(() => {
const messageList = async () => {
try {
Expand Down Expand Up @@ -60,10 +64,6 @@ const MessageDetail = () => {
}, [messages]);


const [messages, setMessages] = useState([]);

const [newMessage, setNewMessage] = useState("");

const handleSendMessage = async() => {
console.log(itemId, itemType, receiverId, newMessage)
//let newReceiverId = senderId;
Expand Down

0 comments on commit 0acae19

Please sign in to comment.