mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-07 19:38:09 +08:00
chore: testing for null too
This commit is contained in:
parent
2dfd7c2a04
commit
b80a26483c
1 changed files with 2 additions and 0 deletions
|
|
@ -1364,8 +1364,10 @@ export async function getDiscordAvatarUrl(
|
|||
): Promise<string | null> {
|
||||
if (
|
||||
discordId === undefined ||
|
||||
discordId === null ||
|
||||
discordId === "" ||
|
||||
discordAvatar === undefined ||
|
||||
discordAvatar === null ||
|
||||
discordAvatar === ""
|
||||
) {
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue