diff --git a/src/components/Profile.vue b/src/components/Profile.vue
index 116aa2f..2ac6ee5 100644
--- a/src/components/Profile.vue
+++ b/src/components/Profile.vue
@@ -376,8 +376,8 @@
Add your work{{ userData.designation }}
at
{{ userData.organisation }}
@@ -423,7 +423,7 @@
-
+
Awards
-
@@ -753,15 +753,11 @@ export default {
if (!response.data.data.socialMediaProfiles) {
this.userData.socialMediaProfiles = {};
}
- this.userData = Object.assign(this.userData, response.data.data);
+ this.userData = response.data.data;
// this.userData = response.data.data;
this.oldId = this.userData.bgColor;
console.log(this.oldId, "this.userData.", this.userData);
- this.showDesignation =
- this.userData.designation.length == 0 ? true : false;
- this.showCompany =
- this.userData.organisation.length == 0 ? true : false;
console.log("this.userData.firstLogin ",this.userData.firstLogin )
if (this.userData.firstLogin == true) {
this.addProfileDialog();
@@ -800,7 +796,7 @@ export default {
openStudy(payload) {
console.log("payload-", payload);
payload.intro.date = payload.createdAt;
- payload.intro.focusPoint = payload.createdAt;
+ payload.intro.focusPoint = payload.focusAreas;
axios
.get("/caseStudy/slides?caseStudyId=" + payload._id, {
headers: {
@@ -808,6 +804,7 @@ export default {
},
})
.then((response) => {
+
this.createSlide(payload, response.data.data);
})
.catch((error) => console.log(error));
@@ -858,6 +855,7 @@ export default {
});
console.log(finalSlides);
+ console.log("payload",payload)
localStorage.setItem(
"spotlight_slide" + payload._id,
JSON.stringify(finalSlides)
@@ -927,6 +925,7 @@ export default {
delete obj.karmaPoints;
delete obj.awards;
delete obj.socialLogin;
+ delete obj.phoneNo;
axios
.put("/profile", obj, {
headers: {