diff --git a/src/components/Admin/ProfileCard.jsx b/src/components/Admin/ProfileCard.jsx index 382054d..c87161b 100644 --- a/src/components/Admin/ProfileCard.jsx +++ b/src/components/Admin/ProfileCard.jsx @@ -32,6 +32,12 @@ function ProfileCard({ mode, person, onClose }) { const updateUser = async (id, userData) => { try { + if (userData.role === 'User') { + userData.role = 'Employee'; + } + if (userData.authName === 'N/A') { + userData.authName = null; + } const response = await fetch(`${API_URL}/${id}`, { method: 'PUT', headers: {