diff --git a/src/lib/components/mfaChallengeFormList.svelte b/src/lib/components/mfaChallengeFormList.svelte
index 3e369b2ab..00dc1ad23 100644
--- a/src/lib/components/mfaChallengeFormList.svelte
+++ b/src/lib/components/mfaChallengeFormList.svelte
@@ -95,7 +95,7 @@
{#if enabledFactors.length > 1}
or
- {#if factors.totp && challengeType != null && challengeType != AuthenticationFactor.Totp}
+ {#if factors.totp && challengeType !== null && challengeType !== AuthenticationFactor.Totp}
-
+
Authenticator app
{#if $factors.totp}
- connected
+
{/if}
diff --git a/src/routes/(console)/organization-[organization]/billing/paymentMethods.svelte b/src/routes/(console)/organization-[organization]/billing/paymentMethods.svelte
index 4f0d7e131..db32f3c91 100644
--- a/src/routes/(console)/organization-[organization]/billing/paymentMethods.svelte
+++ b/src/routes/(console)/organization-[organization]/billing/paymentMethods.svelte
@@ -102,9 +102,9 @@
$: hasPaymentError =
defaultPaymentMethod?.lastError ||
- defaultPaymentMethod.expired ||
+ defaultPaymentMethod?.expired ||
backupPaymentMethod?.lastError ||
- backupPaymentMethod.expired;
+ backupPaymentMethod?.expired;