diff --git a/src/ui/GameRoot.tsx b/src/ui/GameRoot.tsx index db296fcdd..7d0157b41 100644 --- a/src/ui/GameRoot.tsx +++ b/src/ui/GameRoot.tsx @@ -285,7 +285,7 @@ export function GameRoot(): React.ReactElement { useEffect(() => { if (pageWithContext.page !== Page.Terminal) window.scrollTo(0, 0); - }); + }, [pageWithContext.page]); function softReset(): void { dialogBoxCreate("Soft Reset!");