diff --git a/packages/grant-explorer/src/features/common/ShareButtons.tsx b/packages/grant-explorer/src/features/common/ShareButtons.tsx index a9490a298..afa1a5b0e 100755 --- a/packages/grant-explorer/src/features/common/ShareButtons.tsx +++ b/packages/grant-explorer/src/features/common/ShareButtons.tsx @@ -106,7 +106,7 @@ export function createFarcasterShareUrl( embedLinks: string[] ) { // NB: embed links should not be encoded - return `https://warpcast.com/~/compose?text=${shareText}${embedLinks.forEach((link) => `&embeds[]=${link}`)}`; + return `https://warpcast.com/~/compose?text=${shareText}${embedLinks.map((link) => `&embeds[]=${link}`)}`; } type TwitterButtonParams = { diff --git a/packages/grant-explorer/src/features/round/ViewRoundPage.tsx b/packages/grant-explorer/src/features/round/ViewRoundPage.tsx index 9a16e51ca..4ad4d5ed1 100644 --- a/packages/grant-explorer/src/features/round/ViewRoundPage.tsx +++ b/packages/grant-explorer/src/features/round/ViewRoundPage.tsx @@ -1171,9 +1171,10 @@ const ShareButton = ({ shareText + window.location.href )}`; - const farcasterShareUrl = createFarcasterShareUrl(shareText, [ - window.location.href, - ]); + const farcasterShareUrl = createFarcasterShareUrl( + encodeURIComponent(shareText), + [window.location.href] + ); return ( <>