Skip to content

Commit 3fa8176

Browse files
committed
Resolve comments
1 parent 5d91fd9 commit 3fa8176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/post.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ const getSessionUserID = async (id) => {
230230
body: JSON.stringify({ id })
231231
});
232232

233-
const responseText = JSON.parse(await response.text());
233+
const responseText = await response.json();
234234
return responseText.message;
235235
} catch (error) {
236236
console.error('Error:', error);

0 commit comments

Comments
 (0)