diff --git a/apps/client/src/components/QuestionCard/YN/index.tsx b/apps/client/src/components/QuestionCard/YN/index.tsx index 2f43d82..a2be4d5 100644 --- a/apps/client/src/components/QuestionCard/YN/index.tsx +++ b/apps/client/src/components/QuestionCard/YN/index.tsx @@ -15,6 +15,7 @@ export const YNQuestionCard: FC = ({ const { data: { no, yes } } = useQuestionStats({ questionId }) const { sendFeedback, isSending, errors } = useSendFeedback({ groupId, questionId }) + console.log({ yes, no }) if (errors.length > 0) return errors.map(({ message, type }) =>

{`${type}: ${message}`}

) return ( @@ -37,7 +38,7 @@ export const YNQuestionCard: FC = ({ className='mr-2' type='button' onClick={() => { - sendFeedback('true') + sendFeedback('yes') }} disabled={isSending} > @@ -47,7 +48,7 @@ export const YNQuestionCard: FC = ({ type='button' disabled={isSending} onClick={() => { - sendFeedback('false') + sendFeedback('no') }} > {no}