diff --git a/frontend/src/components/pages/Profile.js b/frontend/src/components/pages/Profile.js index 3debdc4..b7f9351 100644 --- a/frontend/src/components/pages/Profile.js +++ b/frontend/src/components/pages/Profile.js @@ -163,12 +163,12 @@ export default function Profile(props) { setBreeds(res.data.breeds); setLocation(res.data.location); setAbout(res.data.about); - setProfileData(res.data.profilePicture); - setCertificateData(res.data.certificate); - setPicture1Data(res.data.picture1); - setPicture2Data(res.data.picture2); - setPicture3Data(res.data.picture3); - setPicture4Data(res.data.picture4); + setProfileData((res.data.profilePicture)? res.data.profilePicture:require("./z_add9.jpg")); + setCertificateData((res.data.certificate)? res.data.certificate:require("./z_add6.png")); + setPicture1Data((res.data.picture1)? res.data.picture1:require("./z_add7.png")); + setPicture2Data((res.data.picture2)? res.data.picture2:require("./z_add7.png")); + setPicture3Data((res.data.picture3)? res.data.picture3:require("./z_add7.png")); + setPicture4Data((res.data.picture4)? res.data.picture4:require("./z_add7.png")); }).catch((err) => { console.log(err) alert("refresh error") @@ -398,6 +398,14 @@ export default function Profile(props) { + +