From 9cccc08021a3009472d859c258556e1a4e653f95 Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Fri, 10 Jun 2022 14:31:53 -0700 Subject: [PATCH] Fix busted comment permalink copying code (#481) * Fix busted comment permalink copying code * Fix busted comment permalink href --- web/components/feed/copy-link-date-time.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/components/feed/copy-link-date-time.tsx b/web/components/feed/copy-link-date-time.tsx index ac5b54c6..8cce8a79 100644 --- a/web/components/feed/copy-link-date-time.tsx +++ b/web/components/feed/copy-link-date-time.tsx @@ -28,8 +28,7 @@ export function CopyLinkDateTimeComponent(props: { event: React.MouseEvent ) { event.preventDefault() - const elementLocation = `https://${ENV_CONFIG.domain}/${contractCreatorUsername}/${contractSlug} - )}#${elementId}` + const elementLocation = `https://${ENV_CONFIG.domain}/${contractCreatorUsername}/${contractSlug}#${elementId}` copyToClipboard(elementLocation) setShowToast(true) @@ -39,7 +38,7 @@ export function CopyLinkDateTimeComponent(props: {