diff --git a/website/src/components/functionOfTheDay/functionOfTheDay.tsx b/website/src/components/functionOfTheDay/functionOfTheDay.tsx index 72225e5..edf33b7 100644 --- a/website/src/components/functionOfTheDay/functionOfTheDay.tsx +++ b/website/src/components/functionOfTheDay/functionOfTheDay.tsx @@ -15,8 +15,8 @@ import { Doc, data as raw } from "@/models/data"; // Show only functions with content. const data = raw; -const emptyIdxs = raw - .map((d, idx) => (d.content?.content ? false : idx)) +const emptyIdxs: number[] = raw + .map((d, idx) => (d.content?.content ? 0 : idx)) .filter(Boolean); const date = new Date();