Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 463 Rev 464
Línea 20... Línea 20...
20
    /**
20
    /**
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
        console.log(option);
25
        question.answer.includes(option.slug_option) ?
26
        question.answer.includes(option.slug_option) ?
26
            question.answer = removeOptionMultiple(question.answer, option.slug_option) :
27
            question.answer = removeOptionMultiple(question.answer, option.slug_option) :
27
            question.answer.push(option.slug_option);
28
            question.answer.push(option.slug_option);
28
        option.checked != option.checked;
29
        option.checked != option.checked;
-
 
30
        console.log(option);
29
        setInput(question.answer);
31
        setInput(question.answer);
30
    }
32
    }
Línea 31... Línea 33...
31
 
33
 
32
    /**
34
    /**