From 1c92c64111541ec02786ba34d6f4aad121e51423 Mon Sep 17 00:00:00 2001 From: hazycora Date: Sun, 17 Sep 2023 01:09:25 -0500 Subject: [PATCH] check that module exists before login check --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 054939e..398c949 100644 --- a/src/index.ts +++ b/src/index.ts @@ -26,7 +26,7 @@ class Lucida { for (const i in this.logins) { const credentials = this.logins[i] const module = this.modules[i] - if ('login' in module) { + if (module && 'login' in module) { await module.login?.(credentials.username, credentials.password) } }