faction dont rerender

This commit is contained in:
Olivier Gagnon 2021-09-29 10:33:21 -04:00
parent cefd499ff6
commit 73834d03cd
4 changed files with 23 additions and 22 deletions

30
dist/vendor.bundle.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -72,10 +72,11 @@ export function FactionRoot(props: IProps): React.ReactElement {
setRerender((old) => !old);
}
useEffect(() => {
const id = setInterval(rerender, 200);
return () => clearInterval(id);
}, []);
// Enabling this breaks donations.
// useEffect(() => {
// const id = setInterval(rerender, 200);
// return () => clearInterval(id);
// }, []);
const faction = props.faction;