mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-09 21:06:37 +08:00
added check against null
This commit is contained in:
parent
dd8388e310
commit
eeb18cdcc9
1 changed files with 1 additions and 1 deletions
|
|
@ -1483,7 +1483,7 @@ exports.generatePairingCode = functions
|
|||
lastDoc = query.docs[query.docs.length - 1];
|
||||
query.docs.forEach(doc => {
|
||||
let docData = doc.data();
|
||||
if (docData.discordPairingCode !== undefined) {
|
||||
if (docData.discordPairingCode !== undefined && docData.discordPairingCode !== null) {
|
||||
existingCodes.push(docData.discordPairingCode);
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue