Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Last used label in button shown in 2-factor code and backup screen (#18341)

Anwar Sadathcd7b93a51eb2
diff --git a/apps/web/modules/auth/login-view.tsx b/apps/web/modules/auth/login-view.tsx
index 478ec4523e4..0f8ba9628e5 100644
--- a/apps/web/modules/auth/login-view.tsx
+++ b/apps/web/modules/auth/login-view.tsx
@@ -282,7 +282,7 @@ PageProps & WithNonceProps<{}>) {
disabled={formState.isSubmitting}
className="w-full justify-center">
<span>{twoFactorRequired ? t("submit") : t("sign_in")}</span>
- {lastUsed === "credentials" && <LastUsed className="text-gray-600" />}
+ {lastUsed === "credentials" && !twoFactorRequired && <LastUsed className="text-gray-600" />}
</Button>
</div>
</form>