mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-01-29 16:11:13 -05:00
Fix minor bugs
This commit is contained in:
@@ -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 &&
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user