From 8dbca84ee35a609eb828b609c8c69ed399fe5aea Mon Sep 17 00:00:00 2001 From: Jeon Eonseok Date: Sun, 29 Sep 2024 16:09:24 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=ED=99=9C=EB=8F=99=20=EB=A0=88?= =?UTF-8?q?=EC=BD=94=EB=93=9C=2035=EA=B8=B0=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/api/remote/about.ts | 8 ++++---- src/views/AboutPage/components/Record/Section/index.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/api/remote/about.ts b/src/lib/api/remote/about.ts index 46da7694..ed93057b 100644 --- a/src/lib/api/remote/about.ts +++ b/src/lib/api/remote/about.ts @@ -14,7 +14,7 @@ const CURRENT_GENERATION = 35; const getAboutInfo = async (): Promise => { const { data: dataCurrent } = await client.get(`/aboutsopt?generation=${CURRENT_GENERATION}`); - const { data: dataPrev } = await client.get(`/aboutsopt?generation=${CURRENT_GENERATION - 1}`); + // const { data: dataPrev } = await client.get(`/aboutsopt?generation=${CURRENT_GENERATION - 1}`); return { aboutInfo: { @@ -38,9 +38,9 @@ const getAboutInfo = async (): Promise => { [Part.WEB]: dataCurrent.aboutSopt.webCurriculum, }, records: { - memberCount: dataPrev.activitiesRecords.activitiesMemberCount, - projectCount: dataPrev.activitiesRecords.projectCounts, - studyCount: dataPrev.activitiesRecords.studyCounts, + memberCount: dataCurrent.activitiesRecords.activitiesMemberCount, + projectCount: dataCurrent.activitiesRecords.projectCounts, + studyCount: dataCurrent.activitiesRecords.studyCounts, }, }, }; diff --git a/src/views/AboutPage/components/Record/Section/index.tsx b/src/views/AboutPage/components/Record/Section/index.tsx index 7fd5207a..83eabb1b 100644 --- a/src/views/AboutPage/components/Record/Section/index.tsx +++ b/src/views/AboutPage/components/Record/Section/index.tsx @@ -8,7 +8,7 @@ type RecordSectionProps = Pick; const RecordSection = (props: RecordSectionProps) => { return ( - + );