From 8dc8c6b27fb9fe82ce2e609302078b011b040ba9 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Tue, 20 Aug 2024 19:27:07 +0300 Subject: fix: homepage api call spam (#195) Co-authored-by: Wolfboy248 <121288977+Wolfboy248@users.noreply.github.com> --- frontend/src/components/pages/home.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/src/components/pages') diff --git a/frontend/src/components/pages/home.js b/frontend/src/components/pages/home.js index 55e58a8..ba96904 100644 --- a/frontend/src/components/pages/home.js +++ b/frontend/src/components/pages/home.js @@ -85,7 +85,7 @@ export default function Homepage(prop) { titleDiv.appendChild(titleSpan) e.insertBefore(titleDiv, e.firstChild) }); - }) + }, [token]) const newsList = [ { -- cgit v1.2.3