diff --git a/app/src/routes/Blog/posts/faq.tsx b/app/src/routes/Blog/posts/faq.tsx index 3ad1e1d..1c470cd 100644 --- a/app/src/routes/Blog/posts/faq.tsx +++ b/app/src/routes/Blog/posts/faq.tsx @@ -4,7 +4,7 @@ import moment from "moment"; import aiBeanstalk from "../../../../assets/ai_beanstalk_royalties.jpeg"; // @ts-ignore import doggo from "../../../../assets/doggo.png"; -import { type Season, SeasonsService } from "../../../client"; +import { type GetSeasonsResponse, SeasonsService } from "../../../client"; import { Link } from "../../../components/Link"; import { Sep } from "../../../components/Sep"; import { BlogContent, Section } from "../components/BlogSections"; @@ -19,7 +19,7 @@ export const FAQ: BlogPost = { showTOS: true, showInList: false, component: ({ onSectionsChange }) => { - const { data: seasons } = useQuery({ + const { data: seasons } = useQuery({ staleTime: 0, queryKey: ["seasons"], queryFn: () => SeasonsService.getGetSeasons(), @@ -135,11 +135,11 @@ export const FAQ: BlogPost = { Seasons
    - {(seasons || []).map((s) => ( -
  • + {(seasons?.seasons || []).map((s) => ( +
  • {s.name} - Started{" "} {moment(s.started_at).format(DT_FORMAT)}{" "} - {s.ended_at + {seasons?.current_season?.id !== s.id ? `and ended at ${moment(s.ended_at).format(DT_FORMAT)}` : "and is the current season."}