diff --git a/public/js/chat.js b/public/js/chat.js index 493d043..09810f2 100644 --- a/public/js/chat.js +++ b/public/js/chat.js @@ -59,7 +59,7 @@ $(document).ready(async () => { const sendData = async () => { const jwt = getCookie("jwt"); - const author = await (await fetch(`/api/getUsername`)).json() + const author = await fetch(`/api/getUsername`) const content = $("#chat-input").val(); const message = {