Kaynağa Gözat

Merge branch 'master' of http://git.hghweb.ir/ali.s/palizvani-front-vite into production

HgH 2 yıl önce
ebeveyn
işleme
6e64fe76b6

+ 1 - 1
src/components/Widgets/Other/Shop/ShopCompleteInfo/components/AllQuestions.vue

@@ -172,7 +172,7 @@ export default {
               canEdit: false,
               canDelete: false,
               choicesInfo: answerSheetItem.test_question_info.question_info.choices_info,
-              value: isNaN(answerSheetItem.answer_choice_index) ? 0 : parseInt(answerSheetItem.answer_choice_index),
+              value: !answerSheetItem.answer_choice_index || isNaN(answerSheetItem.answer_choice_index) ? 0 : parseInt(answerSheetItem.answer_choice_index),
               col: 'col-12 flex justify-end'
             })
         }

+ 2 - 1
src/components/Widgets/Test/TestParticipation/TestParticipation.vue

@@ -217,12 +217,13 @@ export default {
         type: 'negative',
         message: 'زمان آزمون به اتمام رسیده است.'
       })
-      this.stopTimer()
       this.backToClassList()
     },
     startTimer () {
+      this.stopTimer()
       this.timerInterval = setInterval(() => {
         if (this.remainingTime <= 0) {
+          this.stopTimer()
           this.onTimeout()
         } else {
           this.remainingTime--