Fix book card button to render when url is set but amazonUrl is not; v1.1.38

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 4.6 committed 2026-08-26 08:42:09 -04:00
1 parent 889baf23ca
commit 24d7fd7cec
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -1787,8 +1787,8 @@ function BooksSectionSection({ content }: { content: SiteContent }) {
<div className="book-card-meta">
<span className="book-card-title">{book.label}</span>
{book.description && <p className="book-card-description">{book.description}</p>}
{book.amazonUrl && (
<a href={book.amazonUrl} target="_blank" rel="noopener noreferrer" className="btn-primary book-card-btn">
{(book.amazonUrl || book.url) && (
<a href={book.amazonUrl || book.url} target="_blank" rel="noopener noreferrer" className="btn-primary book-card-btn">
{book.amazonLabel || 'View on Amazon'}
</a>
)}