Skip to content

Commit 3d48826

Browse files
[Dashboard] Change default x402 metric from volume to payments (#8399)
1 parent fa640ad commit 3d48826

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/x402/analytics/ChartsSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function ChartMetricSwitcher() {
1111
const pathname = usePathname();
1212
const searchParams = useSearchParams();
1313

14-
const metric = (searchParams.get("metric") as Metric) || "volume";
14+
const metric = (searchParams.get("metric") as Metric) || "payments";
1515

1616
const handleMetricChange = useCallback(
1717
(newMetric: Metric) => {

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/x402/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default async function Page(props: {
7575
// Get project wallet for prefilling the code snippet
7676
const projectWallet = await getProjectWallet(project);
7777

78-
const metric = (searchParams.metric as "payments" | "volume") || "volume";
78+
const metric = (searchParams.metric as "payments" | "volume") || "payments";
7979

8080
return (
8181
<ResponsiveSearchParamsProvider value={searchParams}>

0 commit comments

Comments
 (0)