Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 462 Rev 463
Línea 21... Línea 21...
21
     * Update question answer
21
     * Update question answer
22
     * @param {*} option
22
     * @param {*} option
23
     */
23
     */
24
    const handleAnswerMultiple = (option) => {
24
    const handleAnswerMultiple = (option) => {
25
        question.answer.includes(option.slug_option) ?
25
        question.answer.includes(option.slug_option) ?
26
            question.answer = removeOptionMultiple(question.answer, slug_option) :
26
            question.answer = removeOptionMultiple(question.answer, option.slug_option) :
27
            question.answer.push(slug_option);
27
            question.answer.push(option.slug_option);
28
        option.checked != option.checked;
28
        option.checked != option.checked;
29
        setInput(question.answer);
29
        setInput(question.answer);
30
    }
30
    }
Línea 31... Línea 31...
31
 
31