UI: Fix non-explicit GameRoot effect dependency (#2617)

This commit is contained in:
Lee Stutzman
2026-04-04 05:49:17 +01:00
committed by GitHub
parent de9311f820
commit 2818969c8a

View File

@@ -285,7 +285,7 @@ export function GameRoot(): React.ReactElement {
useEffect(() => { useEffect(() => {
if (pageWithContext.page !== Page.Terminal) window.scrollTo(0, 0); if (pageWithContext.page !== Page.Terminal) window.scrollTo(0, 0);
}); }, [pageWithContext.page]);
function softReset(): void { function softReset(): void {
dialogBoxCreate("Soft Reset!"); dialogBoxCreate("Soft Reset!");