mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-15 14:35:06 +00:00
fix: prevent endless effect loop in login wrapper
This commit is contained in:
@@ -24,8 +24,8 @@
|
|||||||
label: m.alternative_sign_in_methods()
|
label: m.alternative_sign_in_methods()
|
||||||
});
|
});
|
||||||
|
|
||||||
$effect(() => {
|
appConfigStore.subscribe((config) => {
|
||||||
if ($appConfigStore.emailOneTimeAccessAsUnauthenticatedEnabled) {
|
if (config.emailOneTimeAccessAsUnauthenticatedEnabled) {
|
||||||
alternativeSignInButton.href = '/login/alternative';
|
alternativeSignInButton.href = '/login/alternative';
|
||||||
alternativeSignInButton.label = m.alternative_sign_in_methods();
|
alternativeSignInButton.label = m.alternative_sign_in_methods();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user