Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

only render description if secret name present

Scott Wilsonc41872725c03
diff --git a/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RevealSecretValueModal.tsx b/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RevealSecretValueModal.tsx
index 07977d5b77..1c53539068 100644
--- a/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RevealSecretValueModal.tsx
+++ b/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RevealSecretValueModal.tsx
@@ -75,9 +75,11 @@ export const RevealSecretValueModal = ({ isOpen, onOpenChange, popUp }: Props) =
<DialogContent className="max-w-xl">
<DialogHeader>
<DialogTitle>Shared secret value</DialogTitle>
- <DialogDescription>
- Shared secret value for secret request {data?.secretRequestName}
- </DialogDescription>
+ {data?.secretRequestName && (
+ <DialogDescription>
+ Shared secret value for secret request {data.secretRequestName}
+ </DialogDescription>
+ )}
</DialogHeader>
<Content secretValue={data?.secretValue} onClose={() => onOpenChange?.(false)} />
</DialogContent>