Skip to content

Commit

Permalink
fix(velo): fix /liste-aides and e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileRolley committed Nov 6, 2024
1 parent 85b0a0d commit 6865b60
Show file tree
Hide file tree
Showing 9 changed files with 484 additions and 491 deletions.
4 changes: 2 additions & 2 deletions retrofit/routes/(search)/ville/[slug]/RevenuSelector.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
findAllComparaisonsValue(name, {
searchedName: 'revenu fiscal de référence',
unit: '€/mois',
})
}),
)
.filter((x) => x !== Infinity)
.map((x) => Math.round(x))
.map((x) => Math.round(x)),
).sort((a, b) => a - b);
</script>
Expand Down
14 changes: 7 additions & 7 deletions src/lib/components/Autocomplete.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
originalResult = theFunction(argument);
} catch (error) {
console.warn(
'Error executing Autocomplete function on value: ' + argument + ' function: ' + theFunction
'Error executing Autocomplete function on value: ' + argument + ' function: ' + theFunction,
);
}
let result = originalResult;
Expand Down Expand Up @@ -300,7 +300,7 @@
if (debug) {
console.log(
"Change user entered text '" + userEnteredText + "' into '" + textFilteredLowerCase + "'"
"Change user entered text '" + userEnteredText + "' into '" + textFilteredLowerCase + "'",
);
}
return textFilteredLowerCase;
Expand Down Expand Up @@ -439,22 +439,22 @@
if (localFiltering) {
if (itemFilterFunction) {
tempfilteredListItems = listItems.filter((item) =>
itemFilterFunction(item.item, searchWords)
itemFilterFunction(item.item, searchWords),
);
} else {
tempfilteredListItems = listItems.filter((item) =>
defaultItemFilterFunction(item, searchWords)
defaultItemFilterFunction(item, searchWords),
);
}
if (itemSortFunction) {
tempfilteredListItems = tempfilteredListItems.sort((item1, item2) =>
itemSortFunction(item1.item, item2.item, searchWords)
itemSortFunction(item1.item, item2.item, searchWords),
);
} else {
if (sortByMatchedKeywords) {
tempfilteredListItems = tempfilteredListItems.sort((item1, item2) =>
defaultItemSortFunction(item1, item2, searchWords)
defaultItemSortFunction(item1, item2, searchWords),
);
}
}
Expand Down Expand Up @@ -561,7 +561,7 @@
} else {
if (debug) {
console.warn(
'Could not scroll selected item into view, scrollIntoViewIfNeeded not supported'
'Could not scroll selected item into view, scrollIntoViewIfNeeded not supported',
);
}
}
Expand Down
Loading

0 comments on commit 6865b60

Please sign in to comment.