Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit dc561f0

Browse files
committed
Correct incorrect error handling
1 parent 7ac6155 commit dc561f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/frontend/wp/comments/postComment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default async function postComment(
4545
})
4646
.then(
4747
(response) =>
48-
response?.data?.createComment ?? {
48+
response?.data?.postComment ?? {
4949
error: true,
5050
errorMessage: `An error occurred while trying to post the comment.`
5151
}

0 commit comments

Comments
 (0)