Skip to content

Commit

Permalink
fix undeclared identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanglen committed Nov 10, 2023
1 parent 1260134 commit 7dd2539
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions apps/potlock/widget/Cart/Checkout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ const twitterIntent = useMemo(() => {
} on @${POTLOCK_TWITTER_ACCOUNT_ID}! Support public goods at `;
text = encodeURIComponent(text);
url = encodeURIComponent(url);
hashtags = DEFAULT_SHARE_HASHTAGS.join(",");
return twitterIntentBase + text + `&url=${url}` + `&hashtags=${hashtags}`;
return twitterIntentBase + text + `&url=${url}` + `&hashtags=${DEFAULT_SHARE_HASHTAGS.join(",")}`;
}, [state.successfulDonationRecipientId, state.successfulDonationRecipientProfile]);

// console.log(encodeURIComponent("https://twitter.com/intent/tweet?text=Hello%20world"));
Expand Down
3 changes: 1 addition & 2 deletions build/potlock/src/Cart/Checkout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ const twitterIntent = useMemo(() => {
} on @${POTLOCK_TWITTER_ACCOUNT_ID}! Support public goods at `;
text = encodeURIComponent(text);
url = encodeURIComponent(url);
hashtags = DEFAULT_SHARE_HASHTAGS.join(",");
return twitterIntentBase + text + `&url=${url}` + `&hashtags=${hashtags}`;
return twitterIntentBase + text + `&url=${url}` + `&hashtags=${DEFAULT_SHARE_HASHTAGS.join(",")}`;
}, [state.successfulDonationRecipientId, state.successfulDonationRecipientProfile]);

// console.log(encodeURIComponent("https://twitter.com/intent/tweet?text=Hello%20world"));
Expand Down

0 comments on commit 7dd2539

Please sign in to comment.