From f4fda3c78b87b726900569a5c44cd077296dd586 Mon Sep 17 00:00:00 2001 From: hwanheejung Date: Mon, 26 Aug 2024 21:55:57 +0900 Subject: [PATCH] =?UTF-8?q?#100=20fix:=20=EC=BD=94=EB=93=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(board)/board/[boardId]/_components/ShareBtn.tsx | 2 +- src/app/(board)/board/[boardId]/_hooks/useSnsShare.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/(board)/board/[boardId]/_components/ShareBtn.tsx b/src/app/(board)/board/[boardId]/_components/ShareBtn.tsx index 85ba0f9..f272470 100644 --- a/src/app/(board)/board/[boardId]/_components/ShareBtn.tsx +++ b/src/app/(board)/board/[boardId]/_components/ShareBtn.tsx @@ -25,7 +25,7 @@ const ShareBtn = () => { }, []) const copyLink = () => { - navigator.clipboard.writeText(currentURL) + return navigator.clipboard.writeText(currentURL) } const { run, nextStep } = useTutorial() diff --git a/src/app/(board)/board/[boardId]/_hooks/useSnsShare.ts b/src/app/(board)/board/[boardId]/_hooks/useSnsShare.ts index 97dfd3c..9cac3a9 100644 --- a/src/app/(board)/board/[boardId]/_hooks/useSnsShare.ts +++ b/src/app/(board)/board/[boardId]/_hooks/useSnsShare.ts @@ -26,7 +26,7 @@ const useSnsShare = () => { return } - if (!Kakao || !Kakao.isInitialized()) { + if (!Kakao.isInitialized()) { Kakao.init(process.env.NEXT_PUBLIC_KAKAO_API_KEY) }