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" ||