Skip to content

Commit

Permalink
Fix typo in filters and org type labels (#763)
Browse files Browse the repository at this point in the history
Signed-off-by: Cintia Sánchez García <[email protected]>
  • Loading branch information
cynthia-sg authored Dec 4, 2024
1 parent 896bbf6 commit dbb790c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions ui/common/src/utils/formatProfitLabel.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { REGEX_UNDERSCORE } from '../data/data';

const REGEX_NON = /non/g;

export const formatProfitLabel = (text: string): string => {
return text.replace(REGEX_UNDERSCORE, ' ').replace(REGEX_NON, 'not');
return text.replace(REGEX_UNDERSCORE, ' ');
};
4 changes: 2 additions & 2 deletions ui/webapp/src/layout/common/ActiveFiltersList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ const FiltersPerCategoryList = (props: FiltersProps) => {
<>{startCase(c.replace(REGEX_UNDERSCORE, ' '))}</>
</Match>
<Match when={props.category === FilterCategory.License && c === 'non-oss'}>
<span class="text-uppercase">Not open source</span>
<span class="text-uppercase">Non open source</span>
</Match>
<Match when={props.category === FilterCategory.Maturity && c === `non-${getFoundationNameLabel()}`}>
<span class="text-uppercase">Not {getFoundationNameLabel()} project</span>
<span class="text-uppercase">Non {getFoundationNameLabel()} project</span>
</Match>
<Match when={props.category === FilterCategory.ProjectMaturity}>
<>{startCase(c)}</>
Expand Down

0 comments on commit dbb790c

Please sign in to comment.