File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/routes/(authenticated)/shares/user/invites Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2121
2222 let { shareInvite = $bindable () }: Props = $props ();
2323
24- async function acceptInvite(invite : ShareInviteBaseDetails ) {
24+ async function acceptInvite() {
2525 try {
26- await shockerSharesV2Api .userSharesRedeemInvite (invite .id );
27- toast .success (` Accepted share invite for ${invite .owner .name } ` );
26+ await shockerSharesV2Api .userSharesRedeemInvite (shareInvite .id );
27+ toast .success (` Accepted share invite for ${shareInvite .owner .name } ` );
2828 } catch (error ) {
2929 handleApiError (error );
3030 } finally {
9797 </Table .Cell >
9898 <Table .Cell class =" w-0 flex-none" >
9999 <Tooltip .Root >
100- <Tooltip .Trigger class ={cn (' size-9 mr-4' , buttonVariants ({ variant: ' default' }))}>
100+ <Tooltip .Trigger class ={cn (' size-9 mr-4' , buttonVariants ({ variant: ' default' }))} onclick ={ acceptInvite } >
101101 <Check />
102102 </Tooltip .Trigger >
103103 <Tooltip .Content >
You can’t perform that action at this time.
0 commit comments