diff --git a/comments.html b/comments.html index 722c573..d6a3222 100644 --- a/comments.html +++ b/comments.html @@ -110,9 +110,10 @@ } }) }); - console.log(JSON.stringify(await response.json(), null, 2)); + const data = await response.json(); + console.log(JSON.stringify(data, null, 2)); if (response.ok) { - return response.json(); + return data; } else { alert("sorry, but action failed :("); return "not";