Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
GoogolGenius committed Jan 27, 2024
1 parent b1f5f9d commit dd00890
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ export const filterCourses = (): void => {
courseData[courseIDtoNameMap.get(courseID) ?? ''] ?? '';

// Used to convert normal text to the encoded database keys in the firebase db
const key = encodeURIComponent(search?.value.toLowerCase().replaceAll(' ', '-')).replace(/\./g, '%2E');
const key = encodeURIComponent(
search?.value.toLowerCase().replaceAll(' ', '-')
).replace(/\./g, '%2E');
const renderedElements = renderedItems
.filter((name) => name.search(key) !== -1)
.map((name) => {
Expand Down

0 comments on commit dd00890

Please sign in to comment.