From 100139f43c85d4465f3ca6fc3f3477042dcb9ce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cspicecat=E2=80=9D?= Date: Tue, 2 Aug 2022 17:07:00 -0500 Subject: [PATCH] lint && git push --- client/src/components/QAComponents/Answer.jsx | 2 +- client/src/components/QAComponents/Question.jsx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 ( <>