Properly check for UNDEFINED

This commit is contained in:
ClaraCrazy 2024-12-03 07:57:12 +01:00
parent 80d8ecfad2
commit 367c4a688b
No known key found for this signature in database
GPG key ID: EBBC896ACB497011

View file

@ -27,7 +27,7 @@ class MailRepository {
} }
add(to, mailSummary) { add(to, mailSummary) {
if (to !== 'undefined') { if (to !== undefined) {
this.mailSummaries.set(to.toLowerCase(), mailSummary) this.mailSummaries.set(to.toLowerCase(), mailSummary)
} }
} }