From d900858bda913015ca6c6e7f91832f5684aa0262 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 1 Jul 2023 19:15:13 -0700 Subject: [PATCH] chore: books tweaks --- src/_data/books.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,