Skip to content

Commit

Permalink
fix: [611] remove semibold option + add id selection optional
Browse files Browse the repository at this point in the history
  • Loading branch information
dragos1195 committed Aug 28, 2024
1 parent 0656ebe commit 31befdd
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 31befdd

Please sign in to comment.