Skip to content

Commit

Permalink
fix quiz control disable scoreboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabi-02 committed Apr 17, 2024
1 parent a97bcb0 commit 6fe9730
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/lib/pages/quiz/quiz_control_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ class _QuizControlPageState extends AuthState<QuizControlPage> {
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;
Expand Down Expand Up @@ -264,9 +265,6 @@ class _QuizControlPageState extends AuthState<QuizControlPage> {
"userId": _userId,
}));
}
setState(() {
_showLeaderboard = false;
});
} else {
// Show the leaderboard first before moving to the next question
setState(() {
Expand Down

0 comments on commit 6fe9730

Please sign in to comment.