Skip to content

Commit

Permalink
update functionality for Admin profile
Browse files Browse the repository at this point in the history
  • Loading branch information
SwayamRana808 committed May 19, 2024
1 parent 1c0609d commit 0d560b6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/src/pages/Admin/Components/Profile/Profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ export function Profile(props) {
let firstName = props.adminData.firstName ? props.adminData.firstName : "";
let lastName = props.adminData.lastName ? props.adminData.lastName : "";
let Name = firstName + " " + lastName;
setName(Name || "xyz@gmail.com");
setFirstName(firstName || "xyz@gmail.com");
setLastName(lastName || "[email protected]");
setName(Name || "xyz");
setFirstName(firstName || "xyz");
setLastName(lastName || "");
setEmail(props.adminData.email || "[email protected]");
setPhone(props.adminData.contact || "[email protected]");
setUsername(props.adminData.username || "[email protected]");
setPhone(props.adminData.contact || "+919099999990");
setUsername(props.adminData.username || "xyzIo");
}, [props]);

return (
Expand Down

0 comments on commit 0d560b6

Please sign in to comment.