From 5b1bf64a52dff46293a2439ed6f82321529fb1a3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 28 Nov 2024 00:50:22 +0100 Subject: [PATCH] Fix incorrect deps --- holycow_frontend/src/app/page.tsx | 2 +- holycow_frontend/src/app/report/page.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/holycow_frontend/src/app/page.tsx b/holycow_frontend/src/app/page.tsx index 6e8bd99..21eb6aa 100644 --- a/holycow_frontend/src/app/page.tsx +++ b/holycow_frontend/src/app/page.tsx @@ -73,7 +73,7 @@ export default function Page() { ) - }, [resultsData, resultsError]) + }, [userName, resultsData, resultsError]) return <>
diff --git a/holycow_frontend/src/app/report/page.tsx b/holycow_frontend/src/app/report/page.tsx index 7856adf..a0518d1 100644 --- a/holycow_frontend/src/app/report/page.tsx +++ b/holycow_frontend/src/app/report/page.tsx @@ -97,7 +97,7 @@ export default function Page() { ) - }, [onSubmit, opponent, result]) + }, [onSubmit, userName, opponent, result]) return <>