fix communication between question and selecte question cards
This commit is contained in:
@@ -16,7 +16,7 @@ export const QuestionCard: FC<Props> = ({ title, onAddQuestion, onRemoveQuestion
|
||||
setButtonState({
|
||||
bg: 'bg-red-700', label: 'Remover', method: handleRemoveQuestion
|
||||
})
|
||||
onAddQuestion(title)
|
||||
onAddQuestion(title, handleRemoveQuestion)
|
||||
}
|
||||
|
||||
const handleRemoveQuestion = () => {
|
||||
|
||||
Reference in New Issue
Block a user