From e8878fc02e0f814906d20820d9f62e1ecc426ee9 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 18 Nov 2020 08:47:22 +0000 Subject: [PATCH] Refresh stats on login/logout --- webclient/src/Home.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webclient/src/Home.js b/webclient/src/Home.js index 8b6f54b..429ed37 100644 --- a/webclient/src/Home.js +++ b/webclient/src/Home.js @@ -145,7 +145,7 @@ export function Home(props) { console.log(err); setStats(false); }); - }, [refreshCount]); + }, [refreshCount, token]); const getStat = (x) => stats && stats[x] ? stats[x] : '?'; const getZeroStat = (x) => stats && stats[x] ? stats[x] : '0';