Added Picture path

This commit is contained in:
2023-11-06 05:07:45 -08:00
parent dd3f9d99f3
commit 53db8df5c7
6 changed files with 439 additions and 350 deletions
+5 -1
View File
@@ -36,6 +36,10 @@ export default function Header({ logoutModalHandler, sidebarHandler }) {
const { notifications } = useSelector((state) => state?.notifications); // NOTIFICATION STORE
const { walletDetails } = useSelector((state) => state?.walletDetails); // WALLET STORE
const image = `${userDetails.session_image_server}${localStorage.getItem(
"session_token"
)}/profile/${userDetails.uid}`;
const handlerBalance = () => {
setbalanceValue.toggle();
if (notificationDropdown) {
@@ -91,7 +95,7 @@ export default function Header({ logoutModalHandler, sidebarHandler }) {
// User Profile
let { firstname, lastname, email, profile_pic_url } = userDetails;
let userEmail = email?.split("@")[0];
const userProfileImage = profile_pic_url || DEFAULT_PROFILE_IMAGE;
const userProfileImage = image || DEFAULT_PROFILE_IMAGE;
return (
<>