Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: no cname for domains (#979)

Ameer Al Ashhab57c45f20fcfc
diff --git a/apps/web/app/(org)/dashboard/settings/organization/components/CustomDomainDialog/VerifyStep.tsx b/apps/web/app/(org)/dashboard/settings/organization/components/CustomDomainDialog/VerifyStep.tsx
index a28796aba..fc2aa3bf9 100644
--- a/apps/web/app/(org)/dashboard/settings/organization/components/CustomDomainDialog/VerifyStep.tsx
+++ b/apps/web/app/(org)/dashboard/settings/organization/components/CustomDomainDialog/VerifyStep.tsx
@@ -95,7 +95,8 @@ const VerifyStep = ({
recommendedCnames.some((rec) => currentCnames.includes(rec.value));
const showARecord =
recommendedAValues.length > 0 && !aRecordConfigured && !isSubdomain(domain);
- const showCNAMERecord = hasRecommendedCNAME && !cnameConfigured;
+ const showCNAMERecord =
+ hasRecommendedCNAME && !cnameConfigured && isSubdomain(domain);
const showTXTRecord = hasTXTVerification && !isVerified;
const handleCopy = async (text: string, fieldId: string) => {