fix: correct ScoreInlineBreakdown prop names in MatchCardCompact
scoreFactors/score were stale prop names; the component expects scoreBreakdown and allFactors. Added null-guard for scoreBreakdown. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -168,10 +168,10 @@ export const MatchCardCompact = memo(function MatchCardCompact({ vm, imageUrl, o
|
||||
</Box>
|
||||
)}
|
||||
|
||||
{vm.scoreFactors.length > 0 && (
|
||||
{vm.scoreBreakdown && vm.allFactors && vm.allFactors.length > 0 && (
|
||||
<>
|
||||
<Divider sx={{ my: 0.75 }} />
|
||||
<ScoreInlineBreakdown factors={vm.scoreFactors} score={vm.matchScore} />
|
||||
<ScoreInlineBreakdown scoreBreakdown={vm.scoreBreakdown} allFactors={vm.allFactors} />
|
||||
</>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user