Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix identity verification div

Steven Tey7e89ec4d94e0
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/identity-verification-section.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/identity-verification-section.tsx
index 8d66d441a8..b711084a9e 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/identity-verification-section.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/identity-verification-section.tsx
@@ -132,10 +132,12 @@ export function IdentityVerificationSection({
<div
id="identity-verification"
className={cn(
- failedReason && "overflow-hidden rounded-lg bg-amber-100 p-1",
+ identityVerificationStatus !== "approved" &&
+ failedReason &&
+ "overflow-hidden rounded-lg bg-amber-100 p-1",
)}
>
- {failedReason && (
+ {identityVerificationStatus !== "approved" && failedReason && (
<div className="flex items-center gap-2 px-2 py-2">
<TriangleWarning className="size-3.5 shrink-0 text-amber-500" />
<p className="leading-0 text-sm font-medium text-amber-900">