mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-10 15:46:04 +08:00
deleting if challenge is nullish
This commit is contained in:
parent
8c0dded3f2
commit
200fe7d97c
1 changed files with 2 additions and 0 deletions
|
@ -208,6 +208,8 @@ class ResultController {
|
|||
|
||||
if (result.challenge && user.discordId) {
|
||||
BotDAO.awardChallenge(user.discordId, result.challenge);
|
||||
} else {
|
||||
delete result.challenge;
|
||||
}
|
||||
|
||||
let tt = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue