Skip to content

Commit

Permalink
Live Test restest remove and Json file changed (#70)
Browse files Browse the repository at this point in the history
* bugfix: live test recurring removed

* json file changed
  • Loading branch information
nayakastha authored Nov 23, 2021
1 parent 9663906 commit c20ae59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aptiche/assets/animation/fakesplash.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions aptiche/lib/views/quiz/quiz_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ class QuizController extends GetxController {

///Function to check whether the quiz is taken already or not.
// ignore_for_file: always_specify_types
bool checkIfAttempted(String quizId) {
bool checkIfAttempted(String quizName) {
final Map? result = localQuizStorage.read<Map>('past');
if (result != null && result[quizId] != null) {
if (result != null && result[quizName] != null) {
return true;
} else {
return false;
Expand Down
2 changes: 1 addition & 1 deletion aptiche/lib/views/testpreview/test_preview_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class TestPreviewView extends GetView<QuizController> {
onTap: () async {
await controller
.getQuestionsByQuiz(<String>[quiz.quizId!]);
if (!controller.checkIfAttempted(quiz.quizId!)) {
if (!controller.checkIfAttempted(quiz.name!)) {
controller.startTimeout(quiz);
await Get.to<QuizView>(
() => QuizView(quiz: quiz));
Expand Down

0 comments on commit c20ae59

Please sign in to comment.