Skip to content

Commit

Permalink
fix: Update settings search filter function
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanpaudel93 committed Jul 2, 2024
1 parent 2ef577a commit af535a4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/routes/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,14 @@ export default function Settings({ params }: Props) {

return (
setting.name.toLowerCase().includes(query.toLowerCase()) ||
setting.displayName.toLowerCase().includes(query.toLowerCase()) ||
setting.description.toLowerCase().includes(query.toLowerCase())
browser.i18n
.getMessage(setting.displayName)
.toLowerCase()
.includes(query.toLowerCase()) ||
browser.i18n
.getMessage(setting.description)
.toLowerCase()
.includes(query.toLowerCase())
);
}

Expand Down

0 comments on commit af535a4

Please sign in to comment.