From a69d9a8f3f10e18748f055ae73e469abba9e853b Mon Sep 17 00:00:00 2001 From: godhyzzang <109357302+godhyzzang@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:15:43 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20500=EC=9D=BC=EB=95=8C=20=ED=95=B4?= =?UTF-8?q?=EB=8B=B9=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=B3=B4=EC=97=AC?= =?UTF-8?q?=EC=A3=BC=EB=8F=84=EB=A1=9D=20=EB=B0=94=EA=BF=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../learn/listening/detail/[id]/error.tsx | 44 +++++++++---------- .../learn/reading/detail/[id]/error.tsx | 44 +++++++++---------- 2 files changed, 44 insertions(+), 44 deletions(-) diff --git a/src/app/(default)/learn/listening/detail/[id]/error.tsx b/src/app/(default)/learn/listening/detail/[id]/error.tsx index a080224..86258f9 100644 --- a/src/app/(default)/learn/listening/detail/[id]/error.tsx +++ b/src/app/(default)/learn/listening/detail/[id]/error.tsx @@ -20,30 +20,30 @@ export default function Error({ // TODO(@godhyzzang) : 다른 요인이 500유발하는 경우 있을 수도 있음. const router = useRouter(); - return error.message.includes('500') ? ( - router.back() - ) : ( -
-
-

- 에러가 발생했습니다 : {error.message} -

+ return ( + error.message.includes('500') && ( +
+
+

+ 에러가 발생했습니다 : {error.message} +

-
- - +
+ + +
-
+ ) ); } diff --git a/src/app/(default)/learn/reading/detail/[id]/error.tsx b/src/app/(default)/learn/reading/detail/[id]/error.tsx index a080224..86258f9 100644 --- a/src/app/(default)/learn/reading/detail/[id]/error.tsx +++ b/src/app/(default)/learn/reading/detail/[id]/error.tsx @@ -20,30 +20,30 @@ export default function Error({ // TODO(@godhyzzang) : 다른 요인이 500유발하는 경우 있을 수도 있음. const router = useRouter(); - return error.message.includes('500') ? ( - router.back() - ) : ( -
-
-

- 에러가 발생했습니다 : {error.message} -

+ return ( + error.message.includes('500') && ( +
+
+

+ 에러가 발생했습니다 : {error.message} +

-
- - +
+ + +
-
+ ) ); }