Skip to content

Commit

Permalink
changes in updateAdmin.js fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SwayamRana808 committed May 20, 2024
1 parent 2f28ac5 commit 4e96f18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/app/routes/admin/updateAdmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ module.exports =async (req, res) => {
} catch (err) {
return res.status(500).json(err);
}

res.send('Done');
};
1 change: 1 addition & 0 deletions frontend/src/pages/Admin/Components/Profile/Profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export function Profile(props) {
contact:phone,
};
const formData = new FormData();

formData.append('firstName', firstName);
formData.append('lastName', lastName);
formData.append('username', username);
Expand Down

0 comments on commit 4e96f18

Please sign in to comment.