Skip to content

Commit 085e2a4

Browse files
committed
fix: pass client ID to in app wallet user content
1 parent 5de5418 commit 085e2a4

File tree

1 file changed

+8
-1
lines changed
  • apps/dashboard/src/app/team/[team_slug]/[project_slug]/connect/in-app-wallets/users

1 file changed

+8
-1
lines changed

apps/dashboard/src/app/team/[team_slug]/[project_slug]/connect/in-app-wallets/users/page.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1+
import { getProject } from "@/api/projects";
12
import { InAppWalletUsersPageContent } from "components/embedded-wallets/Users";
3+
import { notFound } from "next/navigation";
24
import { TRACKING_CATEGORY } from "../_constants";
35

46
export default async function Page(props: {
57
params: Promise<{ team_slug: string; project_slug: string }>;
68
}) {
79
const params = await props.params;
10+
const project = await getProject(params.team_slug, params.project_slug);
11+
if (!project) {
12+
notFound();
13+
}
14+
815
return (
916
<>
1017
<InAppWalletUsersPageContent
11-
clientId={params.project_slug}
18+
clientId={project.publishableKey}
1219
trackingCategory={TRACKING_CATEGORY}
1320
/>
1421
</>

0 commit comments

Comments
 (0)