Skip to content

Commit

Permalink
ready
Browse files Browse the repository at this point in the history
Co-Authored-By: Isha Sakhuja <[email protected]>
  • Loading branch information
soshal and ishasakhuja committed Apr 22, 2024
1 parent b379d39 commit 3d7a82c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ChatApp-main/public/ChatApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ChatApp = () => {

const sendMessage = () => {
if (inputMessage.trim() !== '') {
const newMessage = { user: 'Anonumys', message: inputMessage.trim() };
const newMessage = { user: 'Anonymous', message: inputMessage.trim() };
setMessages((prevMessages) => [...prevMessages, newMessage]);
socket.emit('message', newMessage);
setInputMessage('');
Expand Down

0 comments on commit 3d7a82c

Please sign in to comment.