Fix minor bugs

This commit is contained in:
MartinBraquet
2026-01-26 23:13:32 +01:00
parent 542152eadb
commit a5259f4c61
2 changed files with 3 additions and 3 deletions

View File

@@ -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 &&

View File

@@ -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 (