chore: simplify 2FA component rendering in profile form

This commit is contained in:
Mohammed Imran
2025-10-17 23:17:59 +05:30
parent 7817a3c2fb
commit 622bb3ff4e

View File

@@ -156,9 +156,8 @@ export const ProfileForm = () => {
{t("settings.profile.description")}
</CardDescription>
</div>
<div className="flex flex-row gap-2">
{!data?.user.twoFactorEnabled ? <Enable2FA /> : <Configure2FA />}
</div>
{!data?.user.twoFactorEnabled ? <Enable2FA /> : <Configure2FA />}
</CardHeader>
<CardContent className="space-y-2 py-8 border-t">