From 12a79bb4d390968993e53479f3d7e07e02a95630 Mon Sep 17 00:00:00 2001 From: CJY Date: Tue, 27 Aug 2024 20:57:27 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B6=88=ED=95=84=EC=9A=94=20=EC=9D=B8?= =?UTF-8?q?=EC=9E=90=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useNavigationWarning.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useNavigationWarning.ts b/src/hooks/useNavigationWarning.ts index b53f810..e79dfcd 100644 --- a/src/hooks/useNavigationWarning.ts +++ b/src/hooks/useNavigationWarning.ts @@ -15,7 +15,7 @@ const useNavigationWarning = (onConfirmNavigate?: () => void) => { } }; - const handlePopState = (event: PopStateEvent) => { + const handlePopState = () => { if (!isNavigatingAway) { setShowModal(true); window.history.pushState(null, "", window.location.pathname);