Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 479 Rev 480
Línea 69... Línea 69...
69
     */
69
     */
70
    const leastOneAnswer = () => {
70
    const leastOneAnswer = () => {
71
        let answer = false;
71
        let answer = false;
72
        test.content.map((section) => {
72
        test.content.map((section) => {
73
            section.questions.map((question) => {
73
            section.questions.map((question) => {
74
                console.log(question.answer);
-
 
75
                console.log(question.answer.length);
-
 
76
                //Validate if the answer is not empty
74
                //Validate if the answer is not empty
77
                if (question.answer!=""  || question.answer.length != 0) {
75
                if (question.answer!=""  || question.answer.length != 0) {
78
                    console.log(1);
-
 
79
                    answer = true;
76
                    answer = true;
80
                }
77
                }
81
            });
78
            });
82
        })
79
        })
83
        return answer;
80
        return answer;