From c358cbf9828b2a7f72813fb2c4769672fa3802d0 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Mon, 23 Sep 2024 21:57:19 +0100 Subject: [PATCH] fix: avoid duplicate calling of getProfile when signedin --- apps/dashboard/src/routes/+layout.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/src/routes/+layout.svelte b/apps/dashboard/src/routes/+layout.svelte index 883ca477..3109b999 100644 --- a/apps/dashboard/src/routes/+layout.svelte +++ b/apps/dashboard/src/routes/+layout.svelte @@ -258,7 +258,7 @@ } // Skip Authentication - if (data.skipAuth) return; + if (data.skipAuth || $user.fetchingUser) return; // Authentication Steps if (event === 'SIGNED_IN' || event === 'INITIAL_SESSION') {