Commit ce9460d7 authored by Jakob Moser's avatar Jakob Moser
Browse files

Use "undefined" instead of "null" to identify default case

parent d9417ba1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ export function main() {
        "practice": practice
    }[new URLSearchParams(location.search).get("id")]

    if(currentTest === null) {
    if(currentTest === undefined) {
        // When no test can be loaded, redirect to a URL which leads to a known existing test
        redirectToPractice()
    }