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