diff --git a/web/components/share-icon-button.tsx b/web/components/share-icon-button.tsx index f604a7db..507d90c2 100644 --- a/web/components/share-icon-button.tsx +++ b/web/components/share-icon-button.tsx @@ -21,6 +21,8 @@ function copyContractWithReferral(contract: Contract, username?: string) { `https://${ENV_CONFIG.domain}${contractPath(contract)}${postFix}` ) } + +// Note: if a user arrives at a /group endpoint with a ?referral= query, they'll be added to the group automatically function copyGroupWithReferral(group: Group, username?: string) { const postFix = username ? '?referrer=' + username : '' copyToClipboard(