Skip to content

Commit

Permalink
๐Ÿš€ Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaem03 authored Nov 15, 2024
2 parents ef58b80 + 5f5f518 commit 2d0b6aa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
28 changes: 14 additions & 14 deletions src/pages/nuguPatch/NuguPatch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ export const NuguPatch = () => {
const fetchUserData = async () => {
try {
const userData = await getNugu();
if (userData.insta_url) {
const instaUsername = userData.insta_url.replace(
"https://www.instagram.com/",
""
);
console.log("instaUsername", instaUsername);
setUpdateData({
...userData,
insta_url: instaUsername,
});
console.log("updateData", updateData);
} else {
setUpdateData(userData);
}
// if (userData.insta_url) {
// const instaUsername = userData.insta_url.replace(
// "https://www.instagram.com/",
// ""
// );
// console.log("instaUsername", instaUsername);
// setUpdateData({
// ...userData,
// insta_url: instaUsername,
// });
// console.log("updateData", updateData);
// } else {
setUpdateData(userData);
// }
} catch (err) {
console.error("Patch-user์ •๋ณด ๊ฐ€์ ธ์˜ค๊ธฐ ์‹คํŒจ", err);
}
Expand Down
7 changes: 4 additions & 3 deletions src/pages/nuguPatch/_hooks/useNuguPatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ export const useNuguPatch = () => {
nickname: updateData.nickname,
mbti: updateData.mbti,
org: updateData.org,
insta_url: insta_url
? `https://www.instagram.com/${updateData.insta_url}`
: "",
// insta_url: updateData.insta_url
// ? `https://www.instagram.com/${updateData.insta_url}`
// : "",
insta_url: updateData.insta_url,
intro: updateData.intro,
keyword1: updateData.keyword1,
keyword2: updateData.keyword2,
Expand Down

0 comments on commit 2d0b6aa

Please sign in to comment.