Format and automatically fix linted code.

This commit is contained in:
Paul
2021-07-10 15:57:29 +01:00
parent 392cb23541
commit 7586b365fe
87 changed files with 789 additions and 563 deletions

View File

@@ -44,10 +44,10 @@ function StateMonitor(props: Props) {
useEffect(() => {
function removeOld() {
if (!props.typing) return;
for (let channel of Object.keys(props.typing)) {
let users = props.typing[channel];
for (const channel of Object.keys(props.typing)) {
const users = props.typing[channel];
for (let user of users) {
for (const user of users) {
if (+new Date() > user.started + 5000) {
dispatch({
type: "TYPING_STOP",
@@ -61,7 +61,7 @@ function StateMonitor(props: Props) {
removeOld();
let interval = setInterval(removeOld, 1000);
const interval = setInterval(removeOld, 1000);
return () => clearInterval(interval);
}, [props.typing]);