From 8ead9e4a72f8f8474e278a978efc38cd99605ca4 Mon Sep 17 00:00:00 2001 From: Nulo Date: Sun, 30 Apr 2023 20:28:24 -0300 Subject: [PATCH] borrar amigxs --- src/lib/Amigxs.svelte | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/lib/Amigxs.svelte b/src/lib/Amigxs.svelte index da6a5e3..3ba9c6e 100644 --- a/src/lib/Amigxs.svelte +++ b/src/lib/Amigxs.svelte @@ -34,6 +34,9 @@ $: id = `${myUser.room};${myUser.password}`; const copiar = () => navigator.clipboard.writeText(id); + + const remove = (id: UserIdentifier) => + ($friends = $friends.filter((i) => i.room !== id.room)); @@ -51,10 +54,13 @@