Skip to content

Commit

Permalink
fix: shortcut age handle no max value
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNumericite committed May 17, 2023
1 parent 8d0a995 commit aa99b44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webapp-next/components/layouts/FiltersShortcut.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ export function FiltersShortcut() {
<CustomTag
key={`${key}-${value.toString()}`}
field_name={key}
value={`entre ${value.min} et ${value.max} ans`}
value={
value.max
? `entre ${value.min} et ${value.max} ans`
: `à partir de ${value.min}`
}
onDelete={() => {
setFilters({
...filters,
Expand Down

0 comments on commit aa99b44

Please sign in to comment.