We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9c83d3 commit e269f2cCopy full SHA for e269f2c
components/Hero.js
@@ -15,7 +15,7 @@ export default function Hero({
15
}) {
16
const [titleIndex, setTitleIndex] = useState(0);
17
const handleTitleIndex = () =>
18
- setTitleIndex(titleIndex === dynamicTitles.length - 1 ? 0 : titleIndex + 1);
+ setTitleIndex(titleIndex >= dynamicTitles.length - 1 ? 0 : titleIndex + 1);
19
20
useEffect(() => {
21
setTimeout(handleTitleIndex, 1350);
0 commit comments