Skip to content

Commit 7e1cb6d

Browse files
committed
Fix in-app wallet analytics chart on legacy dashboard (#5243)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updating the parameters used in the `Page` component within the `analytics` directory to reflect a change in the expected data structure, specifically changing from `project_slug` to `clientId`. ### Detailed summary - Updated the `params` type in the `Page` function from `{ team_slug: string; project_slug: string }` to `{ clientId: string }`. - Changed the prop passed to `<InAppWalletAnalytics />` from `clientId={params.project_slug}` to `clientId={params.clientId}`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent c2a9054 commit 7e1cb6d

File tree

1 file changed

+3
-2
lines changed
  • apps/dashboard/src/app/(dashboard)/dashboard/connect/in-app-wallets/[clientId]/analytics

1 file changed

+3
-2
lines changed

apps/dashboard/src/app/(dashboard)/dashboard/connect/in-app-wallets/[clientId]/analytics/page.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default function Page({
55
params,
66
searchParams,
77
}: {
8-
params: { team_slug: string; project_slug: string };
8+
params: { clientId: string };
99
searchParams: {
1010
from?: string;
1111
to?: string;
@@ -27,9 +27,10 @@ export default function Page({
2727
)
2828
? (searchParams.interval as "day" | "week")
2929
: "week";
30+
3031
return (
3132
<InAppWalletAnalytics
32-
clientId={params.project_slug}
33+
clientId={params.clientId}
3334
interval={interval}
3435
range={range as Range}
3536
/>

0 commit comments

Comments
 (0)