From e7195dd68d17c09d92b0b47c85d0fb7efb05cb93 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Tue, 9 Sep 2025 01:16:14 +0200 Subject: [PATCH] Log --- .../answers/add-compatibility-question-button.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/components/answers/add-compatibility-question-button.tsx b/web/components/answers/add-compatibility-question-button.tsx index 5ccf0534..25854f95 100644 --- a/web/components/answers/add-compatibility-question-button.tsx +++ b/web/components/answers/add-compatibility-question-button.tsx @@ -131,11 +131,12 @@ function CreateCompatibilityModalContent(props: { const onAddQuestion = useEvent(async () => { try { - const newQuestion = await api('create-compatibility-question', { + const data = { question: question, options: generateJson(), - }) - console.log('create-compatibility-question', newQuestion) + }; + const newQuestion = await api('create-compatibility-question', data) + console.log('create-compatibility-question', newQuestion, data) const q = newQuestion?.question if (q) { afterAddQuestion(q as rowFor<'love_questions'>)