Skip to content

Commit

Permalink
refactor: 다시 대기화면으로 못돌아오도록 navigate replace: true 추가 #427
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgksqkr committed Dec 11, 2024
1 parent 9e0f888 commit 77cc45c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const useCountdown = ({ isGameStart }: UseCountdownProps) => {
};

const goToGame = () => {
navigate(ROUTES.game(Number(roomId)));
navigate(ROUTES.game(Number(roomId)), { replace: true });
};

useEffect(() => {
Expand Down

0 comments on commit 77cc45c

Please sign in to comment.