This commit is contained in:
austinkelsay 2024-10-13 17:42:28 -05:00
parent 9b0def8123
commit 229cd2ecb3
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ export default function DocumentsCarousel() {
const sortedDocuments = processedDocuments.sort((a, b) => b.created_at - a.created_at);
// filter out documents that are in the paid lessons array
const filteredDocuments = sortedDocuments.filter(document => !paidLessons.includes(document.id));
const filteredDocuments = sortedDocuments.filter(document => !paidLessons.includes(document?.d));
setProcessedDocuments(filteredDocuments);
} else {

View File

@ -56,7 +56,7 @@ export default function VideosCarousel() {
const sortedVideos = processedVideos.sort((a, b) => b.created_at - a.created_at);
// filter out videos that are in the paid lessons array
const filteredVideos = sortedVideos.filter(video => !paidLessons.includes(video.id));
const filteredVideos = sortedVideos.filter(video => !paidLessons.includes(video?.d));
setProcessedVideos(filteredVideos);
} else {