Skip to content

Commit

Permalink
Revert "Revert "fix(facilityFilterUtil): Remove encodeURIComponent""
Browse files Browse the repository at this point in the history
This reverts commit 9964627.
  • Loading branch information
vogelino committed Aug 11, 2023
1 parent 9964627 commit ecee89b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/facilityFilterUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const getFilterStatus: GetFilterStatusType = ({
const MAX_TEXT_SEARCH_STRING_LENGTH = 100
export function truncateSearchTerm(searchTerm: unknown): string {
if (typeof searchTerm !== 'string') return ''
return encodeURIComponent(searchTerm.slice(0, MAX_TEXT_SEARCH_STRING_LENGTH))
return searchTerm.slice(0, MAX_TEXT_SEARCH_STRING_LENGTH)
}

export const isFaclilityActive = ({
Expand Down

0 comments on commit ecee89b

Please sign in to comment.