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'} )}