better-auth-ui-svelte 0.12.3 → 0.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -157,11 +157,11 @@
|
|
|
157
157
|
const organizationRefetching = $derived(currentOrgResult.isRefetching);
|
|
158
158
|
const organizationRefetch = currentOrgResult.refetch;
|
|
159
159
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
160
|
+
// Whether there are any non-active orgs or personal account rendered above additionalOrganizations
|
|
161
|
+
const hasItemsAboveAdditional = $derived(
|
|
162
|
+
(!hidePersonal && !!activeOrganization) ||
|
|
163
|
+
(organizations ?? []).some((o) => o.id !== activeOrganization?.id)
|
|
164
|
+
);
|
|
165
165
|
|
|
166
166
|
// Smarter pending logic: Only show loading if we're truly waiting for data
|
|
167
167
|
// If we have organizations list, we can show the UI even if active org is still loading
|