diff --git a/package.json b/package.json
index dd5019c40a..982859a4fe 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,7 @@
"@appwrite.io/pink-icons": "0.25.0",
"@appwrite.io/pink-icons-svelte": "^2.0.0-RC.1",
"@appwrite.io/pink-legacy": "^1.0.3",
- "@appwrite.io/pink-svelte": "https://try-module.cloud/module/@appwrite/@appwrite.io/pink-svelte@0cc439f",
+ "@appwrite.io/pink-svelte": "https://try-module.cloud/-/@appwrite/@appwrite.io/pink-svelte@b91df47",
"@popperjs/core": "^2.11.8",
"@sentry/sveltekit": "^8.38.0",
"@stripe/stripe-js": "^3.5.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b7c8dcdd11..bf6b42c2a7 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -24,8 +24,8 @@ importers:
specifier: ^1.0.3
version: 1.0.3
'@appwrite.io/pink-svelte':
- specifier: https://try-module.cloud/module/@appwrite/@appwrite.io/pink-svelte@0cc439f
- version: https://try-module.cloud/module/@appwrite/%40appwrite.io%2Fpink-svelte@0cc439f(svelte@5.25.3)
+ specifier: https://try-module.cloud/-/@appwrite/@appwrite.io/pink-svelte@b91df47
+ version: https://try-module.cloud/-/@appwrite/%40appwrite.io%2Fpink-svelte@b91df47(svelte@5.25.3)
'@popperjs/core':
specifier: ^2.11.8
version: 2.11.8
@@ -278,8 +278,8 @@ packages:
'@appwrite.io/pink-legacy@1.0.3':
resolution: {integrity: sha512-GGde5fmPhs+s6/3aFeMPc/kKADG/gTFkYQSy6oBN8pK0y0XNCLrZZgBv+EBbdhwdtqVEWXa0X85Mv9w7jcIlwQ==}
- '@appwrite.io/pink-svelte@https://try-module.cloud/module/@appwrite/%40appwrite.io%2Fpink-svelte@0cc439f':
- resolution: {tarball: https://try-module.cloud/module/@appwrite/%40appwrite.io%2Fpink-svelte@0cc439f}
+ '@appwrite.io/pink-svelte@https://try-module.cloud/-/@appwrite/%40appwrite.io%2Fpink-svelte@b91df47':
+ resolution: {tarball: https://try-module.cloud/-/@appwrite/%40appwrite.io%2Fpink-svelte@b91df47}
version: 2.0.0-RC.2
peerDependencies:
svelte: ^4.0.0
@@ -3635,7 +3635,7 @@ snapshots:
'@appwrite.io/pink-icons': 1.0.0
the-new-css-reset: 1.11.3
- '@appwrite.io/pink-svelte@https://try-module.cloud/module/@appwrite/%40appwrite.io%2Fpink-svelte@0cc439f(svelte@5.25.3)':
+ '@appwrite.io/pink-svelte@https://try-module.cloud/-/@appwrite/%40appwrite.io%2Fpink-svelte@b91df47(svelte@5.25.3)':
dependencies:
'@appwrite.io/pink-icons-svelte': 2.0.0-RC.1(svelte@5.25.3)
'@floating-ui/dom': 1.6.13
diff --git a/src/lib/components/mfaChallengeFormList.svelte b/src/lib/components/mfaChallengeFormList.svelte
index 86e6c2decf..3e369b2abd 100644
--- a/src/lib/components/mfaChallengeFormList.svelte
+++ b/src/lib/components/mfaChallengeFormList.svelte
@@ -3,7 +3,7 @@
export async function verify(challenge: Models.MfaChallenge, code: string) {
try {
- if (challenge == null) {
+ if (challenge === null) {
challenge = await sdk.forConsole.account.createMfaChallenge(
AuthenticationFactor.Totp
);
@@ -59,9 +59,9 @@
onMount(async () => {
const enabledNonRecoveryFactors = enabledFactors.filter(
- ([factor, _]) => factor != 'recoveryCode'
+ ([factor, _]) => factor !== 'recoveryCode'
);
- if (enabledNonRecoveryFactors.length == 1) {
+ if (enabledNonRecoveryFactors.length === 1) {
if (factors.phone) {
createChallenge(AuthenticationFactor.Phone);
} else if (factors.email) {
@@ -77,7 +77,7 @@
{:else}
- {#if factors.totp && (challengeType == AuthenticationFactor.Totp || challengeType == null)}
+ {#if factors.totp && (challengeType === AuthenticationFactor.Totp || challengeType === null)}
Enter below a 6-digit one-time code generated by your authentication app.
{:else if challengeType === AuthenticationFactor.Email}
diff --git a/src/routes/(console)/account/mfa.svelte b/src/routes/(console)/account/mfa.svelte
index 4768c28eeb..777abe4f86 100644
--- a/src/routes/(console)/account/mfa.svelte
+++ b/src/routes/(console)/account/mfa.svelte
@@ -75,7 +75,7 @@
{/await}
{:else}
-
+
{/if}
{/key}