Skip to content

Commit

Permalink
Merge pull request #52 from 8princesses/fix/qa
Browse files Browse the repository at this point in the history
🐛 빌드 오류 수정
  • Loading branch information
ckhe1215 authored Dec 3, 2023
2 parents da1bedc + f2acd6d commit 08ed07f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/detail/KakaoShareButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ interface KakaoShareButtonProps {

const KakaoShareButton: FC<KakaoShareButtonProps> = (props) => {
const { id, name } = props;
const kakao = (window as any).Kakao;

useEffect(() => {
Kakao.cleanup();
Kakao.init(String(process.env.NEXT_PUBLIC_KAKAO_KEY));
kakao.cleanup();
kakao.init(String(process.env.NEXT_PUBLIC_KAKAO_KEY));
}, []);

const handleShardClick = () => {
Kakao.Share.sendDefault({
kakao.Share.sendDefault({
objectType: "feed",
content: {
title: name,
Expand Down

0 comments on commit 08ed07f

Please sign in to comment.