From 5e1607e60f4f402d261b8919cb9af8d08d03db7b Mon Sep 17 00:00:00 2001 From: davidpborromeo Date: Mon, 18 Jun 2018 19:46:44 +0900 Subject: [PATCH] #50 modify time --- app/screens/Quiz/quizFlash.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/screens/Quiz/quizFlash.js b/app/screens/Quiz/quizFlash.js index 87047aa..4190a29 100644 --- a/app/screens/Quiz/quizFlash.js +++ b/app/screens/Quiz/quizFlash.js @@ -83,7 +83,7 @@ import { this.showCorrect = false; this.isPause = null; this.timerResume = false; - this.time = 6000; + this.time = 7000; this.initialState = { timesUp: false, @@ -437,7 +437,9 @@ import { setQuizFormat(quizFormat, time){ let paramFormat; - + if(this.currentQuestion.type == 'grammar'){ + time = 10000; + } if (this.currentQuestion.moji.indexOf('/') > -1 && quizFormat.indexOf('fill') > -1) { switch(this.currentQuestion.type){ @@ -627,8 +629,8 @@ import { this.timeStops = 0; this.currentQuestion = this.allQuestion[counter]; - this.randomQuizFormat(); - console.log(this.state); + this.randomQuizFormat(); + reset = { counter: counter, //questionId: questionId,