Skip to content

Commit

Permalink
Merge pull request #2487 from openstax/fix-coming-soon-badge
Browse files Browse the repository at this point in the history
Fix coming soon badge
  • Loading branch information
bethshook authored Oct 16, 2023
2 parents 8a76fdd + 177c5a1 commit 667a45e
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 @@ -152,7 +152,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 667a45e

Please sign in to comment.