From 89e0236e347e89c208ca389b0f58cc0d708684e3 Mon Sep 17 00:00:00 2001 From: "Ng Wing Tat, David" Date: Tue, 1 Aug 2023 23:33:42 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20duplicated=20content=20typ?= =?UTF-8?q?es=20for=20NFT=20Book=20(#1270)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NFTBook/ItemCard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NFTBook/ItemCard.vue b/src/components/NFTBook/ItemCard.vue index 50642c20b..c9f53dfc0 100644 --- a/src/components/NFTBook/ItemCard.vue +++ b/src/components/NFTBook/ItemCard.vue @@ -230,7 +230,7 @@ export default { types.push(this.getContentUrlType(url)); }); types.push('nft'); - return types.filter(type => type !== 'unknown'); + return [...new Set(types.filter(type => type !== 'unknown'))]; }, componentTag() { if (this.isDetailsPreset) return 'div';