From 8bdddca4bc2a6e59cbb12771214d3bdad78ea84d Mon Sep 17 00:00:00 2001 From: ramiroaisen <52116153+ramiroaisen@users.noreply.github.com> Date: Tue, 9 Jan 2024 16:02:54 -0300 Subject: [PATCH] fix: front invitations delete siblings and in:out effects on empty --- .../(root)/(online)/(app)/me/invitations/+page.svelte | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/front/app/src/routes/(root)/(online)/(app)/me/invitations/+page.svelte b/front/app/src/routes/(root)/(online)/(app)/me/invitations/+page.svelte index 0a023515..9f5f1c49 100644 --- a/front/app/src/routes/(root)/(online)/(app)/me/invitations/+page.svelte +++ b/front/app/src/routes/(root)/(online)/(app)/me/invitations/+page.svelte @@ -55,9 +55,8 @@ if(each.is_expired) continue; if(each.state !== "pending") continue; if(each.id === item.id) continue; - if(each.account_id !== item.account_id) { - ids.add(each.id); - } + if(each.account_id !== item.account_id) continue; + ids.add(each.id); } await Promise.all([...ids].map(async id => { @@ -180,7 +179,7 @@ } .invitation:nth-child(even) { - background: rgba(0,0,0,0.05); + background: rgba(0,0,0,0.025); } .invitation-actions { @@ -224,11 +223,11 @@ {$locale.pages['me/invitations'].head.title} {#if current.length === 0} -
+
{$locale.pages['me/invitations'].no_items_message}
{:else} -
+
{#each current as item (item.id)}