Skip to content

Commit

Permalink
ci: Apply prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
rapsealk committed Nov 7, 2023
1 parent 1205bdb commit a785652
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/components/CustomSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,16 @@ export default function CustomSelect(props: CustomSelectProps) {
const options = useMemo(
() => {
if (optionsList) {
return optionsList.map((option, index) => {
const number = unit.min === 0 ? index : index + 1
return optionsList
.map((option, index) => {
const number = unit.min === 0 ? index : index + 1

return {
value: number.toString(),
label: option,
}
}).filter(filterOption)
return {
value: number.toString(),
label: option,
}
})
.filter(filterOption)
}

return [...Array(unit.total)]
Expand Down

0 comments on commit a785652

Please sign in to comment.