Skip to content

Commit e7195dd

Browse files
committed
Log
1 parent 6a374b0 commit e7195dd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

web/components/answers/add-compatibility-question-button.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,12 @@ function CreateCompatibilityModalContent(props: {
131131

132132
const onAddQuestion = useEvent(async () => {
133133
try {
134-
const newQuestion = await api('create-compatibility-question', {
134+
const data = {
135135
question: question,
136136
options: generateJson(),
137-
})
138-
console.log('create-compatibility-question', newQuestion)
137+
};
138+
const newQuestion = await api('create-compatibility-question', data)
139+
console.log('create-compatibility-question', newQuestion, data)
139140
const q = newQuestion?.question
140141
if (q) {
141142
afterAddQuestion(q as rowFor<'love_questions'>)

0 commit comments

Comments
 (0)