diff --git a/src/components/wrappers/dashboard/profile/profile-security.tsx b/src/components/wrappers/dashboard/profile/profile-security.tsx
index 7c679e30..3ecd975c 100644
--- a/src/components/wrappers/dashboard/profile/profile-security.tsx
+++ b/src/components/wrappers/dashboard/profile/profile-security.tsx
@@ -163,85 +163,81 @@ export function ProfileSecurity({
- {isPasskeyEnabled ||
- isPasswordEnabled ||
- (user.twoFactorEnabled && (
-
-
Authentication
-
- {isPasswordEnabled && (
- <>
-
-
-
Password
-
- {user.lastChangedPasswordAt
- ? `Last changed ${timeAgo(new Date(user.lastChangedPasswordAt))}`
- : "Never changed"}
-
-
- {credentialAccount ? (
-
- ) : (
-
- )}
-
-
-
- >
- )}
-
- {isPasswordEnabled && (
+ {(isPasskeyEnabled || isPasswordEnabled || user.twoFactorEnabled) && (
+
+
Authentication
+
+ {isPasswordEnabled && (
+ <>
-
-
- Two-Factor Authentication
-
- {user.twoFactorEnabled && (
-
- Active
-
- )}
-
+
Password
- Enhance the security of your account by requiring a second
- form of verification during login.
+ {user.lastChangedPasswordAt
+ ? `Last changed ${timeAgo(new Date(user.lastChangedPasswordAt))}`
+ : "Never changed"}
-
- {user.twoFactorEnabled ? (
-
-
-
-
+ {credentialAccount ? (
+
) : (
-
)}
- )}
-
+
+
+ >
+ )}
+
+ {isPasswordEnabled && (
+
+
+
+
Two-Factor Authentication
+ {user.twoFactorEnabled && (
+
+ Active
+
+ )}
+
+
+ Enhance the security of your account by requiring a second
+ form of verification during login.
+
+
+
+ {user.twoFactorEnabled ? (
+
+
+
+
+ ) : (
+
+ )}
+
+ )}
- ))}
+
+ )}
{isPasskeyEnabled && (