From fc68ae7c5c712eae8f3cfbda87123f6ef2aaee9a Mon Sep 17 00:00:00 2001 From: FatimaIrshad123 Date: Wed, 18 Dec 2024 16:41:10 +0500 Subject: [PATCH] Updated filter button --- src/lib/utils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 8cfa4a966..f993a5372 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -420,8 +420,7 @@ export function getFilteredContent( if (filter === 'unwatched') return courseContentWithPercentComplete?.filter( - (content) => - content?.markAsCompleted === false && content?.duration === 0, + (content) => content?.markAsCompleted === false && content?.duration === 0 && content?.percentComplete === 0, ); return [];