From 6992d9a540d50c6302bae7dda6538b2534891790 Mon Sep 17 00:00:00 2001 From: Shyam Tawli <104145978+shyamtawli@users.noreply.github.com> Date: Wed, 4 Sep 2024 18:08:53 +0530 Subject: [PATCH] Update Profile.jsx --- src/components/Profile/Profile.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Profile/Profile.jsx b/src/components/Profile/Profile.jsx index adc59bbe..61013fb5 100644 --- a/src/components/Profile/Profile.jsx +++ b/src/components/Profile/Profile.jsx @@ -9,10 +9,10 @@ function Profile({ data }) { function Card({ data }) { const cardRef = React.useRef(); - const [imageSrc, setImageSrc] = useState(data.avatar || defaultAvatar); - const handleImageError = () => { - setImageSrc(defaultAvatar); // Fallback to default image - }; + // const [imageSrc, setImageSrc] = useState(data.avatar); + // const handleImageError = () => { + // setImageSrc(defaultAvatar); // Fallback to default image + // }; const handleWheel = (event) => { event.stopPropagation(); @@ -36,7 +36,7 @@ function Card({ data }) {
- User logo + User logo