Skip to content

Commit 3f2d246

Browse files
committed
Fix short bios not showing when sorting by compatibility
1 parent 58fdaa2 commit 3f2d246

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/api/src/get-profiles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const loadProfiles = async (props: profileQueryType) => {
104104
Math.abs(l.city_longitude - lon) < radius / (69.0 * Math.cos(lat * Math.PI / 180)) &&
105105
Math.pow(l.city_latitude - lat, 2) + Math.pow((l.city_longitude - lon) * Math.cos(lat * Math.PI / 180), 2) < Math.pow(radius / 69.0, 2)
106106
)) &&
107-
((l.bio_length ?? 0) >= MIN_BIO_LENGTH)
107+
(shortBio || (l.bio_length ?? 0) >= MIN_BIO_LENGTH)
108108
)
109109

110110
const cursor = after

0 commit comments

Comments
 (0)