+ {/* Debug Output */}
+ {/*
+
+ Debug: View Raw User Data
+
+
+ {JSON.stringify(user, null, 2)}
+
+ */}
+
+
+ Competence Matches ({user.competenceMatches.length})
+
+
+ {user.competenceMatches.length > 0 ? (
+
+ {[...user.competenceMatches]
+ .sort((a, b) => {
+ const scoreA = useBestFit ? a.bestFitScore : a.score;
+ const scoreB = useBestFit ? b.bestFitScore : b.score;
+ return scoreB - scoreA;
+ })
+ .map((competence, idx) => (
+
+ ))}
+
+ ) : (
+
+ No specific competence matches found.
+
+ )}
+
+ ),
+ style: {
+ marginBottom: '12px',
+ border: isPerformer ? '2px solid #1890ff' : '1px solid #d9d9d9',
+ borderRadius: '8px',
+ },
+ };
+ });
+
+ return (
+