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 ( - + );