From 1e0f5cde1771d49c79eb6b3780b1522af7846183 Mon Sep 17 00:00:00 2001 From: Antonio Ventilii Date: Fri, 6 Dec 2024 22:44:20 -0300 Subject: [PATCH 1/5] feat(frontend): add signout when authIdentity is nullish --- src/frontend/src/lib/components/dapps/DappsCarousel.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/src/lib/components/dapps/DappsCarousel.svelte b/src/frontend/src/lib/components/dapps/DappsCarousel.svelte index aed1549586..5dfe6f586c 100644 --- a/src/frontend/src/lib/components/dapps/DappsCarousel.svelte +++ b/src/frontend/src/lib/components/dapps/DappsCarousel.svelte @@ -23,6 +23,8 @@ let dappsCarouselSlides: CarouselSlideOisyDappDescription[]; $: dappsCarouselSlides = filterCarouselDapps({ dAppDescriptions, hiddenDappsIds }); + $: console.log('dappsCarouselSlides', $userSettings, hiddenDappsIds, dappsCarouselSlides); + let carousel: Carousel; const closeSlide = async ({ From 1fbaa5799f3617191a7a7746b4c236488c7ff894 Mon Sep 17 00:00:00 2001 From: Antonio Ventilii Date: Fri, 6 Dec 2024 22:45:49 -0300 Subject: [PATCH 2/5] correct commit --- .../src/lib/components/dapps/DappsCarousel.svelte | 2 -- .../src/lib/components/loaders/LoaderUserProfile.svelte | 9 ++++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/frontend/src/lib/components/dapps/DappsCarousel.svelte b/src/frontend/src/lib/components/dapps/DappsCarousel.svelte index 5dfe6f586c..aed1549586 100644 --- a/src/frontend/src/lib/components/dapps/DappsCarousel.svelte +++ b/src/frontend/src/lib/components/dapps/DappsCarousel.svelte @@ -23,8 +23,6 @@ let dappsCarouselSlides: CarouselSlideOisyDappDescription[]; $: dappsCarouselSlides = filterCarouselDapps({ dAppDescriptions, hiddenDappsIds }); - $: console.log('dappsCarouselSlides', $userSettings, hiddenDappsIds, dappsCarouselSlides); - let carousel: Carousel; const closeSlide = async ({ diff --git a/src/frontend/src/lib/components/loaders/LoaderUserProfile.svelte b/src/frontend/src/lib/components/loaders/LoaderUserProfile.svelte index f9c04bea6a..40abe32831 100644 --- a/src/frontend/src/lib/components/loaders/LoaderUserProfile.svelte +++ b/src/frontend/src/lib/components/loaders/LoaderUserProfile.svelte @@ -3,17 +3,20 @@ import { authIdentity } from '$lib/derived/auth.derived'; import { loadUserProfile } from '$lib/services/load-user-profile.services'; import { userProfileStore } from '$lib/stores/user-profile.store'; + import { nullishSignOut } from '$lib/services/auth.services'; - const load = ({ reload = false }: { reload?: boolean }) => { + const load =async ({ reload = false }: { reload?: boolean }) => { if (isNullish($authIdentity)) { userProfileStore.reset(); + await nullishSignOut(); return; } - loadUserProfile({ identity: $authIdentity, reload }); + await loadUserProfile({ identity: $authIdentity, reload }); }; - $: $authIdentity, load({}); + $: $authIdentity, (async () => await load({}))(); + const reload = () => { load({ reload: true }); From 28e1107ce531683b6f1c3c870baecfc5a81115c9 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 7 Dec 2024 01:47:20 +0000 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=A4=96=20Apply=20formatting=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/lib/components/loaders/LoaderUserProfile.svelte | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/lib/components/loaders/LoaderUserProfile.svelte b/src/frontend/src/lib/components/loaders/LoaderUserProfile.svelte index 40abe32831..e3797d69ab 100644 --- a/src/frontend/src/lib/components/loaders/LoaderUserProfile.svelte +++ b/src/frontend/src/lib/components/loaders/LoaderUserProfile.svelte @@ -1,11 +1,11 @@ From 70e047d096a0e0406ad703d576902b45bbe24a17 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 7 Dec 2024 01:49:52 +0000 Subject: [PATCH 5/5] =?UTF-8?q?=F0=9F=A4=96=20Apply=20formatting=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/lib/components/loaders/LoaderUserProfile.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/lib/components/loaders/LoaderUserProfile.svelte b/src/frontend/src/lib/components/loaders/LoaderUserProfile.svelte index ff0d78e648..52a01069bb 100644 --- a/src/frontend/src/lib/components/loaders/LoaderUserProfile.svelte +++ b/src/frontend/src/lib/components/loaders/LoaderUserProfile.svelte @@ -17,7 +17,7 @@ $: $authIdentity, (async () => await load({}))(); - const reload =async () => { + const reload = async () => { await load({ reload: true }); };