diff --git a/src/components/RoadCard/RoadmapSelect.tsx b/src/components/RoadCard/RoadmapSelect.tsx index 838564c13..3b6359d2e 100644 --- a/src/components/RoadCard/RoadmapSelect.tsx +++ b/src/components/RoadCard/RoadmapSelect.tsx @@ -70,6 +70,7 @@ export function RoadmapSelect({ options={options} onChange={onChange} value={selectedRoadmaps} + placeholder="Select roadmaps" unstyled styles={{ input: (base) => ({ diff --git a/src/helper/get-badge-link.ts b/src/helper/get-badge-link.ts index 9237c3bc8..93bfac050 100644 --- a/src/helper/get-badge-link.ts +++ b/src/helper/get-badge-link.ts @@ -20,8 +20,7 @@ export function getBadgeLink({ if (variant) { badgeUrl.searchParams.set('variant', variant); } - const isRoadmapArray = roadmaps && Array.isArray(roadmaps) && roadmaps.length; - if (isRoadmapArray) { + if (roadmaps?.length) { badgeUrl.searchParams.set( 'roadmaps', roadmaps.map(({ value }) => value).join(',')