mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-05-04 21:24:08 -04:00
Show profiles that don't set kids strength
This commit is contained in:
@@ -87,6 +87,8 @@ export const loadProfiles = async (props: profileQueryType) => {
|
||||
intersection(pref_romantic_styles, l.pref_romantic_styles).length) &&
|
||||
(!wants_kids_strength ||
|
||||
wants_kids_strength == -1 ||
|
||||
!l.wants_kids_strength ||
|
||||
l.wants_kids_strength == -1 ||
|
||||
(wants_kids_strength >= 2
|
||||
? l.wants_kids_strength >= wants_kids_strength
|
||||
: l.wants_kids_strength <= wants_kids_strength)) &&
|
||||
@@ -163,9 +165,7 @@ export const loadProfiles = async (props: profileQueryType) => {
|
||||
!!wants_kids_strength &&
|
||||
wants_kids_strength !== -1 &&
|
||||
where(
|
||||
wants_kids_strength >= 2
|
||||
? `wants_kids_strength >= $(wants_kids_strength)`
|
||||
: `wants_kids_strength <= $(wants_kids_strength)`,
|
||||
'wants_kids_strength = -1 OR wants_kids_strength IS NULL OR ' + (wants_kids_strength >= 2 ? `wants_kids_strength >= $(wants_kids_strength)` : `wants_kids_strength <= $(wants_kids_strength)`),
|
||||
{wants_kids_strength}
|
||||
),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user