Skip to content

Commit

Permalink
refactor: reformat pluralize function calss
Browse files Browse the repository at this point in the history
Signed-off-by: Prince Muel <[email protected]>
  • Loading branch information
princemuel committed Apr 30, 2023
1 parent ccc3683 commit c678609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/molecules/dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Dropdown = ({ terms, selected, setSelected }: Props) => {
id='paymentTerms'
>
<span className='block truncate'>
Net {selected} {pluralize(selected, 'Day')}
Net {selected} {pluralize('Day', selected)}
</span>

<span className='pointer-events-none'>
Expand Down Expand Up @@ -53,7 +53,7 @@ const Dropdown = ({ terms, selected, setSelected }: Props) => {
value={term.value}
>
<span className='block truncate'>
Net {term.value} {pluralize(term.value, 'Day')}
Net {term.value} {pluralize('Day', term.value)}
</span>
</Listbox.Option>
);
Expand Down

0 comments on commit c678609

Please sign in to comment.