We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d91fd9 commit 3fa8176Copy full SHA for 3fa8176
components/post.js
@@ -230,7 +230,7 @@ const getSessionUserID = async (id) => {
230
body: JSON.stringify({ id })
231
});
232
233
- const responseText = JSON.parse(await response.text());
+ const responseText = await response.json();
234
return responseText.message;
235
} catch (error) {
236
console.error('Error:', error);
0 commit comments