Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions orbit-app/src/pages/profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ function Profile() {
});
}, [userId]);

const handleDelete = () => {
() => {
deleteUser(userId)
.then((res) => {
alert('User deleted successfully!');
})
.catch((err) => {
console.error('Error deleting user:', err);
console.error('An error occurred while deleting the user.'); // FIX: Avoid logging sensitive error details
});
};
}

return (
<div>
Expand Down