From 6fe97303fe1313fe103aafe8525a06633eaaa4dd Mon Sep 17 00:00:00 2001 From: Fabian Date: Wed, 17 Apr 2024 22:34:39 +0200 Subject: [PATCH] fix quiz control disable scoreboard --- frontend/lib/pages/quiz/quiz_control_page.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/lib/pages/quiz/quiz_control_page.dart b/frontend/lib/pages/quiz/quiz_control_page.dart index b18458b..a9b5d3e 100644 --- a/frontend/lib/pages/quiz/quiz_control_page.dart +++ b/frontend/lib/pages/quiz/quiz_control_page.dart @@ -155,6 +155,7 @@ class _QuizControlPageState extends AuthState { if (data["action"] == "FORM_STATUS_CHANGED") { var form = QuizForm.fromJson(data["form"]); setState(() { + _showLeaderboard = false; _form.status = FormStatus.fromString(data["formStatus"]); _form.currentQuestionIndex = form.currentQuestionIndex; _form.currentQuestionFinished = form.currentQuestionFinished; @@ -264,9 +265,6 @@ class _QuizControlPageState extends AuthState { "userId": _userId, })); } - setState(() { - _showLeaderboard = false; - }); } else { // Show the leaderboard first before moving to the next question setState(() {