diff --git a/src/components/Profile/Profile.jsx b/src/components/Profile/Profile.jsx
index aa95fc78..adc59bbe 100644
--- a/src/components/Profile/Profile.jsx
+++ b/src/components/Profile/Profile.jsx
@@ -1,6 +1,7 @@
-import React from 'react';
+import React, { useState } from 'react';
import { FaGithub, FaLinkedin } from 'react-icons/fa';
import { FaXTwitter, FaLocationDot } from 'react-icons/fa6';
+import defaultAvatar from './image.png';
function Profile({ data }) {
return ;
@@ -8,6 +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 handleWheel = (event) => {
event.stopPropagation();
@@ -31,7 +36,7 @@ function Card({ data }) {
-

+
diff --git a/src/components/Profile/image.png b/src/components/Profile/image.png
new file mode 100644
index 00000000..9f062f95
Binary files /dev/null and b/src/components/Profile/image.png differ