fix: incorrect domain verification records
This commit is contained in:
@@ -123,6 +123,9 @@ export default function Index() {
|
||||
window.location.reload();
|
||||
};
|
||||
|
||||
const domain = activeProject.email?.split("@")[1] ?? "";
|
||||
const subdomain = domain.split(".").length > 2 ? domain.split(".")[0] : "";
|
||||
|
||||
return (
|
||||
<>
|
||||
<Dashboard>
|
||||
@@ -219,11 +222,11 @@ export default function Index() {
|
||||
<div
|
||||
className={"flex cursor-pointer items-center gap-3"}
|
||||
onClick={() => {
|
||||
void navigator.clipboard.writeText(`${token}._domainkey`);
|
||||
void navigator.clipboard.writeText(`${token}._domainkey${subdomain ? '.' + subdomain : ''}`);
|
||||
toast.success("Copied key to clipboard");
|
||||
}}
|
||||
>
|
||||
<p className={"font-mono text-sm"}>{token}._domainkey</p>
|
||||
<p className={"font-mono text-sm"}>{token}._domainkey{subdomain ? '.' + subdomain : ''}</p>
|
||||
<Copy size={14} />
|
||||
</div>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user