diff --git a/client/src/pages/dns-records.tsx b/client/src/pages/dns-records.tsx index 3942dfa..d8bd8f3 100644 --- a/client/src/pages/dns-records.tsx +++ b/client/src/pages/dns-records.tsx @@ -163,6 +163,9 @@ export default function DnsRecordsPage() { domainId, }; + // For debugging + console.log("Adding DNS record:", recordData); + const res = await apiRequest("POST", "/api/dns-records", recordData); return await res.json(); }, @@ -455,7 +458,7 @@ export default function DnsRecordsPage() { Add DNS Record - Add a new DNS record to {domain?.name || 'your domain'}. + Add a new DNS record to {domain?.name ? domain.name : 'your domain'}. @@ -660,7 +663,7 @@ export default function DnsRecordsPage() { Edit DNS Record - Update the DNS record for {domain?.name || 'your domain'}. + Update the DNS record for {domain?.name ? domain.name : 'your domain'}.