Skip to content

Commit

Permalink
Update comments.html
Browse files Browse the repository at this point in the history
  • Loading branch information
lgor360 authored Jan 22, 2025
1 parent 4d0e78e commit 7506951
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 7506951

Please sign in to comment.