Fix invite links in frontend

This commit is contained in:
Max Goodhart
2025-06-14 21:26:39 +00:00
parent 44932d0226
commit c0afcf1de3
2 changed files with 4 additions and 3 deletions

View File

@@ -48,6 +48,7 @@ export interface ViewInfo {
}
interface Invite {
tokenId: string
name: string
secret: string
}
@@ -803,7 +804,7 @@ export function ControlUI({
<StyledNewInviteBox>
Invite link created:{' '}
<a
href={`/invite/${newInvite.secret}`}
href={`/invite/${newInvite.tokenId}?token=${newInvite.secret}`}
onClick={preventLinkClick}
>
"{newInvite.name}"