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 (