Skip to content

Commit

Permalink
restrict to just mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
ngundotra committed Nov 20, 2024
1 parent 4aa6452 commit 3238c40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/api/ping/[network]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NextResponse } from 'next/server';

type Params = {
params: {
network: 'mainnet' | 'devnet';
network: 'mainnet';
};
};

Expand Down
2 changes: 1 addition & 1 deletion app/components/LiveTransactionStatsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function LiveTransactionStatsCard() {
<h4 className="card-header-title">Live Transaction Stats</h4>
</div>
<TpsCardBody series={series} setSeries={setSeries} />
{cluster === Cluster.MainnetBeta || cluster === Cluster.Devnet ? (
{cluster === Cluster.MainnetBeta ? (
<ValidatorsAppPingStatsCardBody series={series} setSeries={setSeries} />
) : (
<PingStatsCardBody series={series} setSeries={setSeries} />
Expand Down

0 comments on commit 3238c40

Please sign in to comment.