Skip to content

Commit 7258447

Browse files
committed
🐛 fix: 링크복사 url 버그 수정
1 parent 0476e8d commit 7258447

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/components/common/Card/detail/ShareButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ type ButtonType = {
2121
shareKakao: () => void;
2222
};
2323
export default function ShareButton({ post }: { post: Post }) {
24-
const postUrl = `https://denamu.site//${post.id}`;
24+
const postUrl = `https://denamu.site/${post.id}`;
2525
const { toast } = useCustomToast();
2626
const isMobile = useMediaStore((state) => state.isMobile);
2727

2828
const handleCopy = async () => {
2929
try {
30-
await navigator.clipboard.writeText(`https://denamu.site//${post.id}`);
30+
await navigator.clipboard.writeText(`https://denamu.site/${post.id}`);
3131
toast(TOAST_MESSAGES.COPY_COMPLETE);
3232
} catch (error) {
3333
console.error(error);

0 commit comments

Comments
 (0)