Refresh stats on login/logout

This commit is contained in:
Tanner Collin 2020-11-18 08:47:22 +00:00
parent e925a184c3
commit e8878fc02e

View File

@ -145,7 +145,7 @@ export function Home(props) {
console.log(err); console.log(err);
setStats(false); setStats(false);
}); });
}, [refreshCount]); }, [refreshCount, token]);
const getStat = (x) => stats && stats[x] ? stats[x] : '?'; const getStat = (x) => stats && stats[x] ? stats[x] : '?';
const getZeroStat = (x) => stats && stats[x] ? stats[x] : '0'; const getZeroStat = (x) => stats && stats[x] ? stats[x] : '0';