diff --git a/client/src/components/QAComponents/Answer.jsx b/client/src/components/QAComponents/Answer.jsx index 84b5b87..7f7e5eb 100644 --- a/client/src/components/QAComponents/Answer.jsx +++ b/client/src/components/QAComponents/Answer.jsx @@ -22,7 +22,7 @@ export default function Answer({ const getVote = () => getAnswerVote(question_id, answer_id); const updateVote = (data) => updateAnswerVote(question_id, answer_id, data); - + const postComment = (data) => postAnswerComment(question_id, answer_id, data); return ( diff --git a/client/src/components/QAComponents/Question.jsx b/client/src/components/QAComponents/Question.jsx index 5116b85..0c3bff8 100644 --- a/client/src/components/QAComponents/Question.jsx +++ b/client/src/components/QAComponents/Question.jsx @@ -63,9 +63,10 @@ export default function Question({ } const getVote = () => getQuestionVote(question_id); - const postComment = (data) => postQuestionComment(question_id, data); const updateVote = (data) => updateQuestionVote(question_id, data); - + + const postComment = (data) => postQuestionComment(question_id, data); + return ( <>