From fb8069c351ba86c0c417fa9d52dd3d353f834cee Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 18 Apr 2021 22:50:39 -0400 Subject: [PATCH] fix score cmd --- src/commands/score.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/score.ts b/src/commands/score.ts index 90855c8..8904ce8 100644 --- a/src/commands/score.ts +++ b/src/commands/score.ts @@ -141,7 +141,7 @@ export default class Score extends Command { embed.addField('Misc', miscScore || 'N/C', true); let judgementsStr: string = ''; const judgements = await this.client.db.Judgement.find({ userID: user.id }).lean().exec(); - if (judgements) { + if (judgements?.length > 0) { for (const judgement of judgements) { let severity: string; switch (judgement.severity) {