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