diff --git a/src/hooks/useGetPointHistory.jsx b/src/hooks/useGetPointHistory.jsx index cad59ea..e38074d 100644 --- a/src/hooks/useGetPointHistory.jsx +++ b/src/hooks/useGetPointHistory.jsx @@ -16,7 +16,7 @@ const useGetPointHistory = () => { Authorization: `Bearer ${token}`, }, }); - setPointHistory(res.data.history); + setPointHistory(res.data.history.reverse()); } catch (error) { console.error("Error fetching new order history:", error); } finally { diff --git a/src/pages/MembershipPage/MembershipPage.jsx b/src/pages/MembershipPage/MembershipPage.jsx index 60b6560..7197d28 100644 --- a/src/pages/MembershipPage/MembershipPage.jsx +++ b/src/pages/MembershipPage/MembershipPage.jsx @@ -56,7 +56,7 @@ function MembershipPage() { 멤버십 내역 {pointHistory?.length ? ( - pointHistory.reverse()?.map((e, i) => ( + pointHistory.map((e, i) => ( // {/* 매핑될 요소 */}