From 269e1857c8e41a4fc74a7b2f60625bfbe681d890 Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 7 Jul 2020 19:47:46 +0100 Subject: [PATCH] fixed a bug where users that are not logged in would be punished, and the test would break. sorry --- public/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/script.js b/public/js/script.js index f5f6ec33c..e46df5798 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -1008,7 +1008,7 @@ function showResult(difficultyFailed = false) { blindMode: config.blindMode, theme: config.theme, tags: activeTags, - discordId: dbSnapshot.discordId, + discordId: dbSnapshot !== null ? dbSnapshot.discordId : null, }; if ( config.difficulty == "normal" ||