fix: hide alternative sign in button if user is already authenticated

This commit is contained in:
Elias Schneider
2025-04-20 19:03:58 +02:00
parent 2597907578
commit 4e05b82f02

View File

@@ -84,7 +84,7 @@
{#if client == null}
<p>{m.client_not_found()}</p>
{:else}
<SignInWrapper animate={!$appConfigStore.disableAnimations} showAlternativeSignInMethodButton>
<SignInWrapper animate={!$appConfigStore.disableAnimations} showAlternativeSignInMethodButton={$userStore == null}>
<ClientProviderImages {client} {success} error={!!errorMessage} />
<h1 class="font-playfair mt-5 text-3xl font-bold sm:text-4xl">
{m.sign_in_to({ name: client.name })}