Skip to content

Commit df07cef

Browse files
committed
clean up
1 parent ab7dd18 commit df07cef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/web/client/src/app/project/[id]/_components/members/invitation-row.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ export const InvitationRow = ({ invitation }: { invitation: ProjectInvitation })
2020
},
2121
});
2222

23-
const copyInvitationLink = () => {
23+
const copyInvitationLink = async () => {
2424
try {
25-
navigator.clipboard.writeText(constructInvitationLink(env.NEXT_PUBLIC_SITE_URL, invitation.id, invitation.token));
25+
await navigator.clipboard.writeText(constructInvitationLink(env.NEXT_PUBLIC_SITE_URL, invitation.id, invitation.token));
2626
setIsCopied(true);
2727
toast.success('Invitation link copied to clipboard');
2828
setTimeout(() => {

0 commit comments

Comments
 (0)