Refresh stats on login/logout
This commit is contained in:
parent
e925a184c3
commit
e8878fc02e
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue
Block a user