Skip to content

Commit

Permalink
modified bookcard.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanee-Solanki authored and hackerkid committed Aug 28, 2023
1 parent 9a55f9a commit 73efa44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/components/bookcard.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const BookCard = ({ book }) => {
{!show && truncateContent(book.description)}
{show && showFullText(book.description)}
</p>
{!show && (
{!show && book.description.length>350 &&(
<button className="btn btn-sm btn-primary " onClick={() => toggleShow(true)}>
Show More
</button>
Expand Down

0 comments on commit 73efa44

Please sign in to comment.