Skip to content

Commit 34a6822

Browse files
hide admin key section if no key present
1 parent ebc0b8c commit 34a6822

File tree

1 file changed

+2
-2
lines changed
  • apps/dashboard/src/app/team/[team_slug]/[project_slug]/transactions/server-wallets/components

1 file changed

+2
-2
lines changed

apps/dashboard/src/app/team/[team_slug]/[project_slug]/transactions/server-wallets/components/key-management.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function KeyManagement({
55
projectId,
66
teamId,
77
}: { maskedAdminKey?: string; projectId: string; teamId: string }) {
8-
return (
8+
return maskedAdminKey ? (
99
<div className="flex flex-col gap-6 overflow-hidden rounded-lg border border-border bg-card p-6">
1010
<div className="flex flex-row items-center gap-4">
1111
<div className="flex flex-1 flex-col gap-4 rounded-lg rounded-b-none lg:flex-row lg:justify-between">
@@ -26,5 +26,5 @@ export function KeyManagement({
2626
<p className="text-muted-foreground text-sm">{maskedAdminKey}</p>
2727
</div>
2828
</div>
29-
);
29+
) : null;
3030
}

0 commit comments

Comments
 (0)