Add workaround so the fsczech quizzes saved before work again

This commit is contained in:
Oskar Winkels 2021-01-23 11:05:03 +01:00
parent e3a15ac60f
commit bcbf149c6c
1 changed files with 5 additions and 0 deletions

View File

@ -547,6 +547,11 @@ window.onload = async function() {
state.submitTime = quiz.submitTime state.submitTime = quiz.submitTime
state.id = urlId 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') changeView('prescreen')
} }