fix: Schattenmarkt bypass source filter + bump external/maison match scores for all tiers
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -71,11 +71,12 @@ export default function Results() {
|
||||
|
||||
const { data: results = [], isLoading } = useUnifiedResults(activeNeed?.id)
|
||||
|
||||
const filtered = results
|
||||
// Exclude VERIFIED_PORTFOLIO by default; include only when toggled on by Property Manager
|
||||
.filter(r => r.resultType !== 'VERIFIED_PORTFOLIO' || showOwnProperties)
|
||||
.filter(r => filterSource === 'ALL' || r.resultType === filterSource)
|
||||
.filter(r => showSchattenmarkt || r.resultType !== 'FUTURE_AVAILABILITY')
|
||||
const filtered = results.filter(r => {
|
||||
if (r.resultType === 'VERIFIED_PORTFOLIO') return showOwnProperties
|
||||
// Schattenmarkt toggle is independent of the source filter
|
||||
if (r.resultType === 'FUTURE_AVAILABILITY') return showSchattenmarkt
|
||||
return filterSource === 'ALL' || r.resultType === filterSource
|
||||
})
|
||||
|
||||
const sorted = sortResults(filtered, sortBy)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user