Skip to content

Commit

Permalink
fix: Last used label in button shown in 2-factor code and backup scre…
Browse files Browse the repository at this point in the history
…en (calcom#18341)
  • Loading branch information
asadath1395 authored and MuhammadAimanSulaiman committed Jan 10, 2025
1 parent b598ee0 commit f049c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/modules/auth/login-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit f049c92

Please sign in to comment.