From 940c1dbb8e62962c778abb118f8f35061ff273f1 Mon Sep 17 00:00:00 2001 From: Jack Short Date: Wed, 23 Nov 2022 12:55:13 -0500 Subject: [PATCH] fix: a few bugs on details (#5386) * fix: a few bugs on details * no seller if no owner * removing seller for erc1155 --- src/nft/components/details/AssetPriceDetails.tsx | 9 ++++++--- src/nft/utils/asset.ts | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/nft/components/details/AssetPriceDetails.tsx b/src/nft/components/details/AssetPriceDetails.tsx index 8e737d06e2..1ce19840b1 100644 --- a/src/nft/components/details/AssetPriceDetails.tsx +++ b/src/nft/components/details/AssetPriceDetails.tsx @@ -96,6 +96,7 @@ const MarketplaceIcon = styled.img` ` const BuyNowButton = styled.div<{ assetInBag: boolean; margin: boolean; useAccentColor: boolean }>` + position: relative; width: 100%; background-color: ${({ theme, assetInBag, useAccentColor }) => assetInBag ? theme.accentFailure : useAccentColor ? theme.accentAction : theme.backgroundInteractive}; @@ -393,9 +394,11 @@ export const AssetPriceDetails = ({ asset, collection }: AssetPriceDetailsProps) )} {isForSale && ( - - Seller: - + {asset.tokenType !== 'ERC1155' && asset.owner.address && ( + + Seller: + + )} { export const generateTweetForAsset = (asset: GenieAsset): string => { return `https://twitter.com/intent/tweet?text=Check%20out%20${ - asset.name ?? `${asset.collectionName}%20%23${asset.tokenId}` + asset.name ? encodeURIComponent(asset.name) : `${asset.collectionName}%20%23${asset.tokenId}` }%20(${asset.collectionName})%20https://app.uniswap.org/%23/nfts/asset/${asset.address}/${ asset.tokenId }%20via%20@uniswap`