Skip to content

Commit

Permalink
fix: 불필요 인자 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
cjy3458 committed Aug 27, 2024
1 parent ab5ed7a commit 12a79bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useNavigationWarning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 12a79bb

Please sign in to comment.