From 5ff3d6c0045a6cb2d340fcb9b099606f2e8f30eb Mon Sep 17 00:00:00 2001 From: llddang Date: Thu, 19 Sep 2024 15:00:51 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=95=99=EC=83=9D=20=EC=A1=B0=ED=9A=8C?= =?UTF-8?q?=20api=20=ED=98=B8=EC=B6=9C=20=EC=8B=A4=ED=8C=A8=EC=8B=9C=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=ED=97=A8=EB=93=A4=EB=A7=81=ED=95=A0=20?= =?UTF-8?q?=EC=88=98=20=EC=9E=88=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #207 --- .../my-page/components/StudentInfoSection/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/(client)/(withSidebar)/my-page/components/StudentInfoSection/index.tsx b/frontend/src/app/(client)/(withSidebar)/my-page/components/StudentInfoSection/index.tsx index 31c87e21..5ba8760d 100644 --- a/frontend/src/app/(client)/(withSidebar)/my-page/components/StudentInfoSection/index.tsx +++ b/frontend/src/app/(client)/(withSidebar)/my-page/components/StudentInfoSection/index.tsx @@ -13,7 +13,12 @@ import StudentInfoLabel from './StudentInfoLabel'; const StudentInfoSection = () => { // TODO - 관리자가 로그인한 경우에 대한 처린 const auth = useAppSelector((state) => state.auth).value; - const { data: member } = useStudentMemberQuery(auth.id); + let member; + try { + member = useStudentMemberQuery(auth.id).data; + } catch (err) { + // TODO: server api error handling + } return (