mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-05-18 13:47:08 -04:00
Do not show compat score if one hasn't answered any question
This commit is contained in:
@@ -143,3 +143,13 @@ export const getProfilesCompatibilityFactor = (
|
||||
multiplier *= areLocationCompatible(profile1, profile2) ? 1 : 0.1
|
||||
return multiplier
|
||||
}
|
||||
|
||||
export const hasAnsweredQuestions = (
|
||||
questions: rowFor<'compatibility_answers'>[],
|
||||
) => {
|
||||
if (!questions?.length) return false
|
||||
for (const question of questions) {
|
||||
if (question.importance >= 0) return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user