                      break;
                        }
                    }
                }

                setChapters(newChapters);
            }, false);
        }, []);

        React.useEffect(() => {
            const interval = setInterval(() => {
                let newChapters = [...chapters];

                const now = Date.now();

                for (let i = 0; i < newChapters.length; i++) {
                    const chapter = newChapters[i];
                    for (let j = 0; j < chapter