Skip to content

Commit

Permalink
Merge pull request #198 from SejongPeer/Rian
Browse files Browse the repository at this point in the history
fix: mypage정보 수정시 localstorage정보 수정
  • Loading branch information
AhnRian authored Mar 6, 2024
2 parents aa72ea2 + 0206421 commit a823ff5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Components/Login/MyPage/Modify/Modify.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,19 @@ const Modify = () => {

const data = await response.json(); // data 변수를 await로 초기화

alert('수정 성공');

if (newKaKaoId !== '') {
localStorage.setItem("kakaoAccount", KaKaoId);
}
if (newPhoneNum !== '') {
localStorage.setItem("phoneNumber", PhoneNum);
}
if (newNickName !== '') {
localStorage.setItem("nickname", NickName);
}


alert("수정 성공");
} catch (error) {
// console.error("Error occurred:", error);
// console.error(error.message);
Expand Down

0 comments on commit a823ff5

Please sign in to comment.