diff --git a/src/_data/books.js b/src/_data/books.js index 50f5c3ba..c8b8702e 100644 --- a/src/_data/books.js +++ b/src/_data/books.js @@ -15,7 +15,7 @@ module.exports = async function () { .catch() const data = await res const coverId = data['docs'].find((b) => { - return b['author_name'][0] === book['authors'][0].name + return b['title'] === book['title'] })?.['cover_i'] books.push({ title: book.title,