fix: build analytics page

This commit is contained in:
exromany 2021-09-24 22:03:56 +03:00
parent 7500563cb9
commit 4fe33359e0
1 changed files with 4 additions and 3 deletions

View File

@ -311,14 +311,14 @@ function InnerAnalytics({ mint }: { mint: MintInfo }) {
const [sortedSales, setSortedSales] = useState<number[]>([]); const [sortedSales, setSortedSales] = useState<number[]>([]);
const { const {
metadata, metadata,
stores, // stores,
auctionManagersByAuction, auctionManagersByAuction,
bidderPotsByAuctionAndBidder, bidderPotsByAuctionAndBidder,
auctionDataExtended, auctionDataExtended,
} = useMeta(); } = useMeta();
const totalNFTs = metadata.length; const totalNFTs = metadata.length;
const totalMarketplaces = Object.values(stores).length; // const totalMarketplaces = Object.values(stores).length;
const auctionViews = useAuctions(); const auctionViews = useAuctions();
@ -353,7 +353,8 @@ function InnerAnalytics({ mint }: { mint: MintInfo }) {
</Button> </Button>
<h1>Overview</h1> <h1>Overview</h1>
<h3> <h3>
Total NFTs: {totalNFTs} Total Marketplaces: {totalMarketplaces} Total NFTs: {totalNFTs}
{/* Total Marketplaces: {totalMarketplaces} */}
</h3> </h3>
<h1>User Breakdown</h1> <h1>User Breakdown</h1>
<h3>Any Engagement: {Object.values(usersEngaged).length}</h3> <h3>Any Engagement: {Object.values(usersEngaged).length}</h3>