Skip to content

Commit

Permalink
fix: Group invite link on NoMembers screen (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
anjantalatam authored Sep 21, 2024
1 parent 3b33704 commit 5c9c52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/group/NoMembers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const NoMembers: React.FC<{ group: Group & { groupUsers: Array<GroupUser> } }> =
const [isCopied, setIsCopied] = React.useState(false);

async function copyToClipboard() {
const inviteLink = `${window.location.origin}/groups/join-group?groupId=${group.publicId}`;
const inviteLink = `${window.location.origin}/join-group?groupId=${group.publicId}`;
await navigator.clipboard.writeText(inviteLink);
setIsCopied(true);
setTimeout(() => {
Expand Down

0 comments on commit 5c9c52e

Please sign in to comment.