Skip to content

Commit

Permalink
Fix variable name: book_state, not state
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyEJohnson committed Oct 18, 2023
1 parent d7da64c commit 331c647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/book-tile/book-tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});

Expand Down

0 comments on commit 331c647

Please sign in to comment.