Skip to content

Commit c20ae59

Browse files
authored
Live Test restest remove and Json file changed (#70)
* bugfix: live test recurring removed * json file changed
1 parent 9663906 commit c20ae59

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

aptiche/assets/animation/fakesplash.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

aptiche/lib/views/quiz/quiz_controller.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ class QuizController extends GetxController {
160160

161161
///Function to check whether the quiz is taken already or not.
162162
// ignore_for_file: always_specify_types
163-
bool checkIfAttempted(String quizId) {
163+
bool checkIfAttempted(String quizName) {
164164
final Map? result = localQuizStorage.read<Map>('past');
165-
if (result != null && result[quizId] != null) {
165+
if (result != null && result[quizName] != null) {
166166
return true;
167167
} else {
168168
return false;

aptiche/lib/views/testpreview/test_preview_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class TestPreviewView extends GetView<QuizController> {
134134
onTap: () async {
135135
await controller
136136
.getQuestionsByQuiz(<String>[quiz.quizId!]);
137-
if (!controller.checkIfAttempted(quiz.quizId!)) {
137+
if (!controller.checkIfAttempted(quiz.name!)) {
138138
controller.startTimeout(quiz);
139139
await Get.to<QuizView>(
140140
() => QuizView(quiz: quiz));

0 commit comments

Comments
 (0)