From 331c647ba36b9f4d21445d4e5c7b5c6394afbdbd Mon Sep 17 00:00:00 2001 From: Roy Johnson Date: Mon, 16 Oct 2023 10:32:07 -0500 Subject: [PATCH] Fix variable name: book_state, not state --- src/app/components/book-tile/book-tile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/book-tile/book-tile.js b/src/app/components/book-tile/book-tile.js index 887d70e41..d4b63da5f 100644 --- a/src/app/components/book-tile/book-tile.js +++ b/src/app/components/book-tile/book-tile.js @@ -119,7 +119,7 @@ function useBookInfo(id) { export default function BookTile({ book: [book] }) { const { coverUrl, title, slug } = book; const info = useBookInfo(book.id); - const comingSoon = info?.state === 'coming_soon'; + const comingSoon = info?.book_state === 'coming_soon'; const assignable = info?.assignable_book === true; const classes = cn({'book-tile': true, 'coming-soon': comingSoon, assignable});