Skip to content

Commit

Permalink
Fix typo in filters and org type labels
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 committed Dec 4, 2024
1 parent 896bbf6 commit b5ab7fc
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 b5ab7fc

Please sign in to comment.