Added profile data but clears after refresh
This commit is contained in:
@@ -23,6 +23,8 @@ const Profile = () => {
|
||||
const { state } = useUserProfile();
|
||||
const userProfile = state.userProfile;
|
||||
|
||||
console.log(userProfile)
|
||||
|
||||
const [anchorEl, setAnchorEl] = React.useState(null);
|
||||
const open = Boolean(anchorEl);
|
||||
const handleClick = (event) => {
|
||||
@@ -102,7 +104,7 @@ const Profile = () => {
|
||||
fontWeight: "500",
|
||||
}}
|
||||
>
|
||||
Adison Jeck
|
||||
{`${userProfile?.firstname} ${userProfile?.lastname}`}
|
||||
</Typography>
|
||||
</Box>
|
||||
</MenuItem>
|
||||
|
||||
Reference in New Issue
Block a user