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