Skip to content

Commit

Permalink
Merge pull request #126 from softeerbootcamp4th/feat/#125/RewardApi
Browse files Browse the repository at this point in the history
[fix] useToast logic fix
  • Loading branch information
subsub-e authored Aug 19, 2024
2 parents 33865dd + 9d4781e commit 8bc83cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion service/src/hooks/useToast.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
})
Expand Down
3 changes: 2 additions & 1 deletion service/src/pages/joinEvent/commentList/Redirect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 8bc83cf

Please sign in to comment.