refactor: only run login if logout and login are falsey
This commit is contained in:
parent
22a73737af
commit
0e889ded3e
|
@ -26,7 +26,7 @@ function handleStorage(event: StorageEvent) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.key === "key" && !getLoginComplete()) {
|
if (event.key === "key" && !getLoginComplete() && !getLogoutComplete()) {
|
||||||
let userKey;
|
let userKey;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Reference in New Issue