Skip to content

Commit

Permalink
feat: Improve conditional showing of AnalyticStats
Browse files Browse the repository at this point in the history
  • Loading branch information
msarcev committed Oct 4, 2023
1 parent 1a8f024 commit 0844050
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions client/src/app/routes/stardust/landing/AnalyticStats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,39 +33,39 @@ const AnalyticStats: React.FC<AnalyticStatsProps> = (
return (
analytics && !analytics.error ? (
<div className="extended-info-boxes">
{totalAddresses && (
{totalAddresses !== undefined && (
<div className="info-box">
<span className="info-box--title">Total active Addresses</span>
<span className="info-box--value">{totalAddresses}</span>
</div>
)}
{claimedAndPercentLabels && (
{claimedAndPercentLabels !== undefined && (
<div className="info-box">
<span className="info-box--title">Rewards claimed</span>
<span className="info-box--value">{claimedAndPercentLabels[1]}</span>
</div>
)}
{claimedAndPercentLabels && (
{claimedAndPercentLabels !== undefined && (
<div className="info-box">
<span className="info-box--title">Total Shimmer claimed</span>
<span className="info-box--value">
{claimedAndPercentLabels[0]}
</span>
</div>
)}
{nftsCount && (
{nftsCount !== undefined && (
<div className="info-box">
<span className="info-box--title">NFTs minted</span>
<span className="info-box--value">{nftsCount}</span>
</div>
)}
{nativeTokensCount && (
{nativeTokensCount !== undefined && (
<div className="info-box">
<span className="info-box--title">Tokens created</span>
<span className="info-box--value">{nativeTokensCount}</span>
</div>
)}
{lockedStorageDepositValue && (
{lockedStorageDepositValue !== undefined && (
<div className="info-box">
<span className="info-box--title">Locked storage deposit</span>
<span className="info-box--value">
Expand Down

0 comments on commit 0844050

Please sign in to comment.