diff --git a/src/routes/(public)/explore/cubes/+page.svelte b/src/routes/(public)/explore/cubes/+page.svelte index e0ac1e0b..e23298c9 100644 --- a/src/routes/(public)/explore/cubes/+page.svelte +++ b/src/routes/(public)/explore/cubes/+page.svelte @@ -167,7 +167,7 @@ ($params.stick === undefined || c.stickered === $params.stick) && ($params.smart === undefined || c.smart === $params.smart) && // Text search on combined name - c.name.includes($params.q.toLowerCase()) + c.name.toLowerCase().trim().includes($params.q.toLowerCase()) ); }); diff --git a/src/routes/(public)/explore/users/+page.svelte b/src/routes/(public)/explore/users/+page.svelte index eb5268a1..d74e931f 100644 --- a/src/routes/(public)/explore/users/+page.svelte +++ b/src/routes/(public)/explore/users/+page.svelte @@ -9,7 +9,7 @@ import SortSelector from "$lib/components/misc/sortSelector.svelte"; import type { DetailedProfile } from "$lib/queries/detailedProfiles"; - const { data } = $props<{ data: { profiles: DetailedProfile[] } }>(); + const { data } = $props(); const profiles: DetailedProfile[] = data.profiles; let searchTerm: string = $state(""); // Text input for search bar diff --git a/src/routes/(public)/explore/users/+page.ts b/src/routes/(public)/explore/users/+page.ts index 9611e9ee..762e923f 100644 --- a/src/routes/(public)/explore/users/+page.ts +++ b/src/routes/(public)/explore/users/+page.ts @@ -5,6 +5,7 @@ import { error } from "@sveltejs/kit"; export const load = (async ({ setHeaders }) => { const { data, error: err } = await queryDetailedProfiles(supabase) + .eq("onboarded", true) .order("id", { ascending: true }); if (err) throw error(500, err.message);