Skip to content

Commit

Permalink
Merge pull request #152 from GDSC-Hongik/dev
Browse files Browse the repository at this point in the history
[Deploy] 스터디원 리스트 멘토에게도 보여지도록 수정
  • Loading branch information
hamo-o authored Sep 30, 2024
2 parents 3296897 + a6cc44a commit 4b71948
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions apps/admin/app/students/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ const StudentsPage = () => {
useEffect(() => {
const fetchData = async () => {
const adminStatus = await isAdmin();
if (adminStatus) {
const data = adminStatus
? await studyApi.getStudyList()
: await studyApi.getMyStudyList();

if (data && data.length && data[0]) {
setStudyList(data);
setSelectedStudy({ studyId: data[0].studyId, title: data[0].title });
}
const data = adminStatus
? await studyApi.getStudyList()
: await studyApi.getMyStudyList();

if (data && data.length && data[0]) {
setStudyList(data);
setSelectedStudy({ studyId: data[0].studyId, title: data[0].title });
}
};

Expand Down

0 comments on commit 4b71948

Please sign in to comment.