From a5259f4c615502c3c014199d7e7a1f6ff56aae80 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Mon, 26 Jan 2026 23:13:32 +0100 Subject: [PATCH] Fix minor bugs --- backend/api/src/get-profiles.ts | 4 ++-- web/components/filters/interest-filter.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/api/src/get-profiles.ts b/backend/api/src/get-profiles.ts index 9150ac2..7bd16d9 100644 --- a/backend/api/src/get-profiles.ts +++ b/backend/api/src/get-profiles.ts @@ -254,9 +254,9 @@ export const loadProfiles = async (props: profileQueryType) => { interests?.length && where(getManyToManyClause('interests'), {values: interests.map(Number)}), - causes?.length && where(getManyToManyClause('causes'), {values: causes}), + causes?.length && where(getManyToManyClause('causes'), {values: causes.map(Number)}), - work?.length && where(getManyToManyClause('work'), {values: work}), + work?.length && where(getManyToManyClause('work'), {values: work.map(Number)}), !!wants_kids_strength && wants_kids_strength !== -1 && diff --git a/web/components/filters/interest-filter.tsx b/web/components/filters/interest-filter.tsx index 90cc5cc..5478123 100644 --- a/web/components/filters/interest-filter.tsx +++ b/web/components/filters/interest-filter.tsx @@ -15,7 +15,7 @@ export function InterestFilterText(props: { const {options, highlightedClass, label} = props const t = useT() const length = (options ?? []).length - const {choices} = useChoices('interests') + const {choices} = useChoices(label) if (!options || length < 1) { return (