diff --git a/src/components/Slide1.tsx b/src/components/Slide1.tsx index a6fad4f..73599f3 100644 --- a/src/components/Slide1.tsx +++ b/src/components/Slide1.tsx @@ -47,7 +47,7 @@ export default function Slide1() { const genYs = useMemo(() => { const ys = []; for (let i = 0; i < titles.length; i++) { - ys.push([]); + ys.push([] as string[]); for (let j = 0; j < titles.length+1; j++) { if ((j % titles.length) === i) { ys[i].push('0%', '0%'); // Current title @@ -66,7 +66,7 @@ export default function Slide1() { const genOs = useMemo(() => { const os = []; for (let i = 0; i < titles.length; i++) { - os.push([]); + os.push([] as number[]); for (let j = 0; j < titles.length+1; j++) { if ((j % titles.length) === i) { os[i].push(1, 1); // Current title