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

This commit is contained in:
Anwar Sadath
2024-12-26 19:20:11 +00:00
committed by GitHub
parent a76366cbcb
commit cd7b93a51e
+1 -1
View File
@@ -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>