diff --git a/frontend/src/auth.js b/frontend/src/auth.js
index 1ca4db4..9e53d79 100644
--- a/frontend/src/auth.js
+++ b/frontend/src/auth.js
@@ -1,15 +1,15 @@
import gateway, { GatewayEventType } from "./gateway";
import { removeItem, setItem } from "./storage";
-import { overlayStore } from "./stores";
+import { overlayStore, OverlayType } from "./stores";
export function useAuthHandlers() {
gateway.subscribe(GatewayEventType.Ready, () => {
- overlayStore.close("login");
- overlayStore.close("createAccount");
+ overlayStore.popType(OverlayType.Login);
+ overlayStore.popType(OverlayType.CreateAccount);
});
gateway.subscribe(GatewayEventType.BadAuth, () => {
- overlayStore.open("login", {});
+ overlayStore.push(OverlayType.Login, {});
});
}
diff --git a/frontend/src/components/ChannelTopBar.svelte b/frontend/src/components/ChannelTopBar.svelte
index e395730..1a29308 100644
--- a/frontend/src/components/ChannelTopBar.svelte
+++ b/frontend/src/components/ChannelTopBar.svelte
@@ -1,7 +1,7 @@
@@ -24,7 +24,7 @@
{/if}