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