Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
arfamomin committed Dec 5, 2024
2 parents 117f610 + f060778 commit 5af7ecf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/screens/SeekHelp/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default function ResourceList() {
const applyFilter = (filter: string) => {
setSelectedFilter(filter);
const tags = tagMapping[filter as keyof typeof tagMapping];
// iterates through resources to check if the tags are equal to the filter
const filtered = resources.filter(resource =>
resource.tags.split(',').some((tag: string) => tags.includes(tag.trim())),
);
Expand Down Expand Up @@ -102,9 +101,7 @@ export default function ResourceList() {
<ScrollView style={styles.rightPanel}>
{filteredResources.length > 0 ? (
filteredResources
.sort(function (a, b) {
return a.org_name.localeCompare(b.org_name);
})
.sort((a, b) => a.org_name.localeCompare(b.org_name))
.map((resource, index) => (
<ResourceT
key={index}
Expand Down

0 comments on commit 5af7ecf

Please sign in to comment.