Skip to content

Commit

Permalink
Merge pull request #621 from code4romania/fix/611-2
Browse files Browse the repository at this point in the history
fix: [611] remove semibold option + add id selection optional
  • Loading branch information
dragos1195 committed Aug 28, 2024
2 parents 0656ebe + 31befdd commit ea72ccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const Select = (props: {
<>
<span
className={classNames(
selected ? 'font-semibold' : 'font-normal',
'font-normal',
'block truncate lg:text-base text-sm',
)}
>
Expand All @@ -91,7 +91,7 @@ const Select = (props: {
: item}
</span>

{(props?.selected?.id === item.id) ? (
{(props.selected?.id ? props?.selected?.id === item.id : selected) ? (
<span
className={classNames(
active ? 'text-white' : 'text-blue-600',
Expand Down

0 comments on commit ea72ccb

Please sign in to comment.