diff --git a/packages/skill-lesson/utils/ability.ts b/packages/skill-lesson/utils/ability.ts index ca7f82ace..812ce077c 100644 --- a/packages/skill-lesson/utils/ability.ts +++ b/packages/skill-lesson/utils/ability.ts @@ -145,7 +145,7 @@ const isFreelyVisible = ({ // TODO: remove this after 2024-12-20 const isTsPromo = - module?.slug.current === 'typescript-generics' && + module?.slug?.current === 'typescript-generics' && new Date() < new Date('2024-12-20T00:00:00-08:00') if (isTsPromo) {