From d9a588b542037e4779e03bc94c23c9a07f78037f Mon Sep 17 00:00:00 2001 From: Joel Hooks Date: Fri, 13 Dec 2024 10:51:53 -0800 Subject: [PATCH] Update ability.ts --- packages/skill-lesson/utils/ability.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {