File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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));
You can’t perform that action at this time.
0 commit comments