Skip to content

Commit 90302cf

Browse files
authored
refactor: minor syntax update
1 parent 07371a1 commit 90302cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/blog-post/copy-link-button.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const CopyLinkButton: FC<CopyLinkButtonProps> = (props) => {
2121
color="gray"
2222
variant="ghost"
2323
onClick={async () => {
24-
await navigator.clipboard.writeText(`${siteUrl}${pathname}`);
24+
await navigator.clipboard.writeText(siteUrl + pathname);
2525
setCopied(true);
2626
timeout.current = setTimeout(() => setCopied(false), 1000);
2727
}}

0 commit comments

Comments
 (0)