Skip to content

Commit

Permalink
Fixed error on book
Browse files Browse the repository at this point in the history
  • Loading branch information
umerfaruk committed Nov 24, 2023
1 parent de6488d commit 9d4eaa3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/books/bookInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ const BookInfo = ({ libraryId, book, t }) => {
<IconText icon={FiLayers} text={t("book.chapterCount", { count: book.chapterCount })} />
<IconText icon={AiOutlineCopy} text={t("book.pageCount", { count: book.pageCount })} />
<IconText icon={BookStatusIcon({status : book.status, render:false })} text={t(`bookStatus.${book.status}`)} />
<Progress percent={book.progress} size="small" status="active" />
<Divider />
{book.pageStatus.map(s => (
{book?.pageStatus && <Divider />}
{book?.pageStatus?.map(s => (
<Space direction="vertical" key={`status-${s.status}`} style={{ width: "100%" }}>
<IconText
icon={EditingStatusIcon({status : s.status, render:false })}
Expand Down

0 comments on commit 9d4eaa3

Please sign in to comment.