Skip to content

Commit

Permalink
fix: ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
lauti7 committed Dec 8, 2023
1 parent b170bbb commit 5c83b67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Icons/Notifications/CounterIcons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ const Counter = ({ count, ...rest }: CounterProps) => {
return null
}

const Component =
count <= MAX_COUNT ? Numbers[`Number${count}`] : Numbers['Number9Plus']
const Component = Numbers[`Number${count <= MAX_COUNT ? count : '9Plus'}`]

return <Component {...rest} />
}
Expand Down

0 comments on commit 5c83b67

Please sign in to comment.