mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-08 13:11:19 +08:00
converting null to undefined
This commit is contained in:
parent
c945e92523
commit
0d925df725
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ async function db_getUserSnapshot() {
|
|||
snap.personalBests = data.personalBests;
|
||||
}
|
||||
snap.discordId = data.discordId;
|
||||
snap.pairingCode = data.discordPairingCode;
|
||||
snap.pairingCode = data.discordPairingCode == null ? undefined : data.discordPairingCode;
|
||||
snap.config = data.config;
|
||||
snap.favouriteThemes =
|
||||
data.favouriteThemes === undefined ? [] : data.favouriteThemes;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue