diff --git a/src/lib/components/GoogleAuthButton.svelte b/src/lib/components/GoogleAuthButton.svelte
index 928fcbd..da0ca5d 100644
--- a/src/lib/components/GoogleAuthButton.svelte
+++ b/src/lib/components/GoogleAuthButton.svelte
@@ -21,8 +21,8 @@
let authState = $state(createGoogleAuthState());
let authManager = new GoogleAuthManager(authState);
- onMount(() => {
- authManager.checkConnection();
+ onMount(async () => {
+ await authManager.checkConnection();
});
async function handleConnect() {
@@ -57,7 +57,14 @@
};
-{#if authState.isConnected}
+{#if authState.checking}
+