mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 15:56:24 +08:00
fixed a bug where users that are not logged in would be punished, and the test would break. sorry
This commit is contained in:
parent
c2bde75103
commit
269e1857c8
|
@ -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" ||
|
||||
|
|
Loading…
Reference in a new issue