From 5d1929146ea1c79736a859f7d6fb565ea17b245d Mon Sep 17 00:00:00 2001 From: William Chong Date: Mon, 10 Feb 2025 18:35:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Show=20author.name=20only=20if?= =?UTF-8?q?=20author=20is=20object?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/latest-books.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/latest-books.vue b/pages/latest-books.vue index 5ff53c6f9..a2338c341 100644 --- a/pages/latest-books.vue +++ b/pages/latest-books.vue @@ -128,10 +128,11 @@ const bookList = computed(() => selectedTabItemKey.value === 'latest' ? latestBo const tableRows = computed(() => bookList.value.map((b: any) => { const className = b.name || b.title const image = b.thumbnailUrl || b.imageUrl + const author = b.author?.name || b.author return { className, image: image ? getImageResizeURL(parseImageURLFromMetadata(image)) : undefined, - author: b.author, + author, priceInUSD: `US$${b.minPrice || b.prices?.[0]?.price || 0}`, url: `${LIKER_LAND_URL}/nft/class/${b.classId}?from=${channelId.value}&utm_source=bookpress&utm_medium=list_${selectedTabItemKey.value}` }