diff options
| author | Kit La Touche <kit@transneptune.net> | 2024-11-12 09:29:07 -0500 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2024-11-12 09:29:07 -0500 |
| commit | a0007f8ea6a758212b216f788c759e2abb102ab1 (patch) | |
| tree | d303ba2e0aaeee34d4445aa66bb0ff383c759e49 /ui/routes | |
| parent | 24eb775ba77f5a6a78a299d9fdffb34f8f167f8d (diff) | |
| parent | 2fb328089f01776e5bb553a1d50a061396588c8c (diff) | |
Merge branch 'main' into wip/touch-events
Diffstat (limited to 'ui/routes')
| -rw-r--r-- | ui/routes/(login)/invite/[invite]/+page.svelte | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/routes/(login)/invite/[invite]/+page.svelte b/ui/routes/(login)/invite/[invite]/+page.svelte index 18bf437..4433bd6 100644 --- a/ui/routes/(login)/invite/[invite]/+page.svelte +++ b/ui/routes/(login)/invite/[invite]/+page.svelte @@ -11,10 +11,10 @@ let pending = false; let disabled = $derived(pending); - async function onSubmit(event) { + async function onSubmit(event, inviteId) { event.preventDefault(); pending = true; - const response = await acceptInvite(data.invite.id, username, password); + const response = await acceptInvite(inviteId, username, password); if (200 <= response.status && response.status < 300) { username = ''; password = ''; @@ -32,5 +32,5 @@ <div class="card m-4 p-4"> <p>Hi there! {invite.issuer} invites you to the conversation.</p> </div> - <LogIn {disabled} bind:username bind:password onsubmit={onSubmit} /> + <LogIn {disabled} bind:username bind:password onsubmit={(event) => onSubmit(event, invite.id)} /> {/await} |
