From 91d6e64f187e886bd5b7e67c7ababd04ec31d0e0 Mon Sep 17 00:00:00 2001 From: leca Date: Thu, 6 Feb 2025 16:05:13 +0300 Subject: [PATCH] s u k a --- public/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {