From 24d7fd7cece21474e506bd6a9cf211ecc3cb22ac Mon Sep 17 00:00:00 2001 From: nmemmert Date: Wed, 26 Aug 2026 08:42:09 -0400 Subject: [PATCH] Fix book card button to render when url is set but amazonUrl is not; v1.1.38 Co-Authored-By: Claude Sonnet 4.6 --- src/AdminPage.tsx | 2 +- src/App.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AdminPage.tsx b/src/AdminPage.tsx index 281ac5e..a52e9e6 100644 --- a/src/AdminPage.tsx +++ b/src/AdminPage.tsx @@ -3905,7 +3905,7 @@ async function handleAssetUpload(event: ChangeEvent) { updateLink(book.id, 'amazonLabel', e.target.value)} />
- + updateLink(book.id, 'url', e.target.value)} />
diff --git a/src/App.tsx b/src/App.tsx index 9a4a2b4..3ed024f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1787,8 +1787,8 @@ function BooksSectionSection({ content }: { content: SiteContent }) {
{book.label} {book.description &&

{book.description}

} - {book.amazonUrl && ( - + {(book.amazonUrl || book.url) && ( + {book.amazonLabel || 'View on Amazon'} )}