From 3ef8a6b27591a3c39407f9e342e66ae78f820df9 Mon Sep 17 00:00:00 2001 From: 2jun0 Date: Thu, 15 Feb 2024 23:21:20 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20/daily/1=EC=97=90=EC=84=9C=20=EC=B2=AB?= =?UTF-8?q?=EB=B2=88=EC=A7=B8=20=EB=8D=B0=EC=9D=BC=EB=A6=AC=20=ED=80=B4?= =?UTF-8?q?=EC=A6=88=EB=A5=BC=20=EC=84=A0=ED=83=9D=ED=95=A0=EB=95=8C=20?= =?UTF-8?q?=EC=83=9D=EA=B8=B0=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/app/daily/[page]/page.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/app/daily/[page]/page.tsx b/frontend/app/daily/[page]/page.tsx index fd528b1..4af7338 100644 --- a/frontend/app/daily/[page]/page.tsx +++ b/frontend/app/daily/[page]/page.tsx @@ -26,7 +26,10 @@ export default function DailyQuiz() { function onChangeQuizPage(event: any) { const newPage = event.target.value - router.push(`/daily/${newPage}`) + + if (newPage && page != newPage) { + router.push(`/daily/${newPage}`) + } } function onChangeGuessName(query: string) {