Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 464 | Rev 466 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 464 Rev 465
Línea 24... Línea 24...
24
    const handleAnswerMultiple = (option) => {
24
    const handleAnswerMultiple = (option) => {
25
        console.log(option);
25
        console.log(option);
26
        question.answer.includes(option.slug_option) ?
26
        question.answer.includes(option.slug_option) ?
27
            question.answer = removeOptionMultiple(question.answer, option.slug_option) :
27
            question.answer = removeOptionMultiple(question.answer, option.slug_option) :
28
            question.answer.push(option.slug_option);
28
            question.answer.push(option.slug_option);
29
        option.checked != option.checked;
29
        option.checked = true;
30
        console.log(option);
30
        console.log(option);
31
        setInput(question.answer);
31
        setInput(question.answer);
32
    }
32
    }
Línea 33... Línea 33...
33
 
33