diff --git a/src/features/ProfileAvatar/ProfileAvatar.tsx b/src/features/ProfileAvatar/ProfileAvatar.tsx index c37d32a..53443f7 100644 --- a/src/features/ProfileAvatar/ProfileAvatar.tsx +++ b/src/features/ProfileAvatar/ProfileAvatar.tsx @@ -25,8 +25,8 @@ const ProfileAvatar: React.FC = ({ ); const [isDeleting, setIsDeleting] = useState(false); const [message, setMessage] = useState(false); - const def = - "https://api.kgroad.org/media/user_photo/default.webp"; + const def = process.env.PROFILE_AVATAR_URL; + const [success, setSuccess] = useState(""); const [loader, setLoader] = useState(false);