From 2818969c8ada0694a1e5a1045305078e65119979 Mon Sep 17 00:00:00 2001 From: Lee Stutzman Date: Sat, 4 Apr 2026 05:49:17 +0100 Subject: [PATCH] UI: Fix non-explicit GameRoot effect dependency (#2617) --- src/ui/GameRoot.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!");