From bcbf149c6cbf1b924c35da8ca3be7009fb136b91 Mon Sep 17 00:00:00 2001 From: Oskar Date: Sat, 23 Jan 2021 11:05:03 +0100 Subject: [PATCH] Add workaround so the fsczech quizzes saved before work again --- web/quiz.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/quiz.js b/web/quiz.js index 23e5c05..318c021 100644 --- a/web/quiz.js +++ b/web/quiz.js @@ -547,6 +547,11 @@ window.onload = async function() { state.submitTime = quiz.submitTime state.id = urlId + // Workaround for quizzes that were saved before the fix + // Where the stored value is null instead of Infinity + if (state.style == 'FSCzech') + state.submitTries = Infinity + changeView('prescreen') }