Skip to content

Commit

Permalink
fix NFT attribute link and Home page graph resizer (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum authored Oct 2, 2023
1 parent a536d87 commit 1690f53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/token/metadata/attributesParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
4 changes: 2 additions & 2 deletions ui/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import SearchBar from 'ui/snippets/searchBar/SearchBar';

const Home = () => {
return (
<>
<Box as="main">
<Box
w="100%"
background={ config.UI.homepage.plate.background }
Expand Down Expand Up @@ -48,7 +48,7 @@ const Home = () => {
<Transactions/>
</Box>
</Flex>
</>
</Box>
);
};

Expand Down

0 comments on commit 1690f53

Please sign in to comment.