Skip to content

Commit

Permalink
ci: Apply prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
rapsealk authored and xrutayisire committed Nov 7, 2023
1 parent dce74a9 commit 3ea350e
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 3ea350e

Please sign in to comment.