From 0e889ded3ed29298ea5ecde8d15cd2166839db42 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 4 Aug 2023 11:30:27 -0400 Subject: [PATCH] refactor: only run login if logout and login are falsey --- src/main/bootloader/storage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/bootloader/storage.ts b/src/main/bootloader/storage.ts index 42cba75..37d721f 100644 --- a/src/main/bootloader/storage.ts +++ b/src/main/bootloader/storage.ts @@ -26,7 +26,7 @@ function handleStorage(event: StorageEvent) { return; } - if (event.key === "key" && !getLoginComplete()) { + if (event.key === "key" && !getLoginComplete() && !getLogoutComplete()) { let userKey; try {