From 1690f536180e704a1c6b8856b603902e0ba2b6f1 Mon Sep 17 00:00:00 2001 From: tom goriunov Date: Mon, 2 Oct 2023 11:13:19 -0300 Subject: [PATCH] fix NFT attribute link and Home page graph resizer (#1237) --- lib/token/metadata/attributesParser.ts | 2 +- ui/pages/Home.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/token/metadata/attributesParser.ts b/lib/token/metadata/attributesParser.ts index 56040067a4..c863000366 100644 --- a/lib/token/metadata/attributesParser.ts +++ b/lib/token/metadata/attributesParser.ts @@ -24,7 +24,7 @@ function formatValue(value: string | number, display: string | undefined, trait: } default: { try { - if (trait?.toLowerCase().includes('url')) { + if (trait?.toLowerCase().includes('url') || value.toString().startsWith('http')) { const url = new URL(String(value)); return { value: url.toString(), diff --git a/ui/pages/Home.tsx b/ui/pages/Home.tsx index 76fbc9c57d..dd5424b7f6 100644 --- a/ui/pages/Home.tsx +++ b/ui/pages/Home.tsx @@ -12,7 +12,7 @@ import SearchBar from 'ui/snippets/searchBar/SearchBar'; const Home = () => { return ( - <> + { - + ); };