diff --git a/src/data/books.js b/src/data/books.js index e23f2c76..131ad44b 100644 --- a/src/data/books.js +++ b/src/data/books.js @@ -48,7 +48,7 @@ export default async function () { const books = await fetchAllBooks(); const sortedByYear = sortBooksByYear(books); const booksForCurrentYear = - sortedByYear.find((yearGroup) => yearGroup.value === currentYear)?.data || + sortedByYear.find((yearGroup) => yearGroup.value === currentYear)?.data.filter(book => book['status'] === 'finished') || []; return {