Skip to content

Commit bc03fdb

Browse files
Removed await from message post, it may fasten UI with hosted db
1 parent fe4f678 commit bc03fdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Frontend/components/Chat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function Chat(props) {
171171
// Message_ID: docRef.id,
172172
// };
173173
// setMessages(previousMessages => GiftedChat.append(previousMessages, mymsg));
174-
const MySQLDB = await axiosInstance.post('/message', {
174+
const MySQLDB = axiosInstance.post('/message', {
175175
Receiver_ID: userChatting.pid,
176176
text: mymsg.text,
177177
});

0 commit comments

Comments
 (0)