mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 06:43:06 +00:00
Format B92 files
This commit is contained in:
parent
4ed2787d36
commit
33f5f125d6
2 changed files with 4 additions and 6 deletions
|
|
@ -33,8 +33,7 @@ const compareEngagementLevel = (
|
|||
right: WizardMunicipalitySuggestInput,
|
||||
): number => {
|
||||
const leftRank = left.engagementLevel === null ? -1 : engagementLevelRank[left.engagementLevel]
|
||||
const rightRank =
|
||||
right.engagementLevel === null ? -1 : engagementLevelRank[right.engagementLevel]
|
||||
const rightRank = right.engagementLevel === null ? -1 : engagementLevelRank[right.engagementLevel]
|
||||
if (leftRank !== rightRank) return rightRank - leftRank
|
||||
return 0
|
||||
}
|
||||
|
|
@ -43,7 +42,8 @@ const comparePoliticalTrend = (
|
|||
left: WizardMunicipalitySuggestInput,
|
||||
right: WizardMunicipalitySuggestInput,
|
||||
): number => {
|
||||
const leftWeight = left.politicalTrend === null ? 0 : politicalTrendSortWeight[left.politicalTrend]
|
||||
const leftWeight =
|
||||
left.politicalTrend === null ? 0 : politicalTrendSortWeight[left.politicalTrend]
|
||||
const rightWeight =
|
||||
right.politicalTrend === null ? 0 : politicalTrendSortWeight[right.politicalTrend]
|
||||
if (leftWeight !== rightWeight) return rightWeight - leftWeight
|
||||
|
|
|
|||
|
|
@ -64,8 +64,6 @@ export const loadWizardMunicipalitySuggestions = async (
|
|||
return {
|
||||
status: 'success',
|
||||
resultKind: 'wizard-suggest',
|
||||
municipalities: ranked.map((input) =>
|
||||
toHomeSearchMunicipalityHit(docBySlug.get(input.slug)!),
|
||||
),
|
||||
municipalities: ranked.map((input) => toHomeSearchMunicipalityHit(docBySlug.get(input.slug)!)),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue