From 367c4a688be8c514f2b7b594cd93a3c4e0d10fbc Mon Sep 17 00:00:00 2001 From: ClaraCrazy Date: Tue, 3 Dec 2024 07:57:12 +0100 Subject: [PATCH] Properly check for UNDEFINED --- domain/mail-repository.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/mail-repository.js b/domain/mail-repository.js index 2d51ef7..4b8a0c2 100644 --- a/domain/mail-repository.js +++ b/domain/mail-repository.js @@ -27,7 +27,7 @@ class MailRepository { } add(to, mailSummary) { - if (to !== 'undefined') { + if (to !== undefined) { this.mailSummaries.set(to.toLowerCase(), mailSummary) } }