diff --git a/service/src/hooks/useToast.js b/service/src/hooks/useToast.js index ee3c3ec..d52b441 100644 --- a/service/src/hooks/useToast.js +++ b/service/src/hooks/useToast.js @@ -27,7 +27,9 @@ const useToast = (duration = 3000) => { showToastMessage('notAlreadyComment'); } else { navigator.clipboard - .writeText(`http://localhost:5173/event/${response.shortenUrl}`) + .writeText( + `https://casper-event.store/event/${response.shortenUrl}`, + ) .then(() => { showToastMessage('copyLink'); }) diff --git a/service/src/pages/joinEvent/commentList/Redirect.jsx b/service/src/pages/joinEvent/commentList/Redirect.jsx index 8c1d196..7563640 100644 --- a/service/src/pages/joinEvent/commentList/Redirect.jsx +++ b/service/src/pages/joinEvent/commentList/Redirect.jsx @@ -6,7 +6,8 @@ function Redirect() { const { commentId } = useParams(); console.log(commentId); const getLink = async () => { - await getRedirectLink(commentId); + const response = await getRedirectLink(commentId); + console.log(response); }; useEffect(() => {