From 38874c94bd607effc0cc8c12b3c7efa3eeb24f77 Mon Sep 17 00:00:00 2001 From: whale22 Date: Tue, 11 Mar 2025 09:57:13 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20userinfo=20=EB=A9=94=EC=84=9C=EB=93=9C?= =?UTF-8?q?=20=EC=86=8C=EB=9F=89=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Profile.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Profile.jsx b/src/pages/Profile.jsx index 41ff769..ec201b5 100644 --- a/src/pages/Profile.jsx +++ b/src/pages/Profile.jsx @@ -48,8 +48,8 @@ const Profile = ({ userInfo }) => { if (response.ok) { const data = await response.json(); // 새로운 데이터로 상태 업데이트 - setSeasonCommitCount(userInfo.seasonCommitCount || 0); - setPetExp(userInfo.petExp || 0); + setSeasonCommitCount(data.seasonCommitCount || 0); + setPetExp(data.petExp || 0); // 마지막 갱신 시간 업데이트 setLastRefreshTime(new Date()); }