Skip to content

Commit

Permalink
feature: add badge handling for "sans" filters
Browse files Browse the repository at this point in the history
  • Loading branch information
elisfainstein committed Dec 12, 2024
1 parent 63d5bb1 commit 3d7aee0
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ export const useFiltersToBadges = ({ filters, customValues }: Args) => {
badgeValues.push(`Date de début : ${mergedFilters[key]}`);
} else if (key === 'dateFin') {
badgeValues.push(`Date de fin prévisionnelle : ${mergedFilters[key]}`);
} else if (key === 'sansStatut') {
mergedFilters[key] && badgeValues.push('Sans statut');
} else if (key === 'sansPilote') {
mergedFilters[key] && badgeValues.push('Sans pilote');
} else if (key === 'sansServicePilote') {
mergedFilters[key] &&
badgeValues.push('Sans direction ou service pilote');
}
});

Expand Down

0 comments on commit 3d7aee0

Please sign in to comment.