Skip to content

Commit

Permalink
fixes for bookmarks and input journey.
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses-cognizant committed Mar 10, 2025
1 parent 9aedc20 commit 5f910e9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/server/locations/helpers/middleware-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ const processMatches = (
}
return (
name1?.includes(userLocation.replace(/\s+/g, '')) &&
userLocation.replace(/\s+/g, '').includes(name1) &&
secondSearchTerm
.replace(/\s+/g, '')
.includes(borough.replace(/\s+/g, '')) &&
Expand All @@ -184,10 +183,10 @@ const processMatches = (
)
}
return (
name2?.includes(userLocation.replace(/\s+/g, '')) &&
userLocation.replace(/\s+/g, '').includes(name2) &&
secondSearchTerm.includes(unitary) &&
unitary?.includes(secondSearchTerm)
(name2?.includes(userLocation.replace(/\s+/g, '')) &&
userLocation.replace(/\s+/g, '').includes(name2)) ||
(secondSearchTerm.includes(unitary) &&
unitary?.includes(secondSearchTerm))
)
}
if (secondSearchTerm === 'UNDEFINED') {
Expand Down Expand Up @@ -225,7 +224,6 @@ const processMatches = (
return (
checkWords ||
name1.includes(userLocation.replace(/\s+/g, '')) ||
userLocation.includes(name1) ||
userLocation.includes(name2)
)
})
Expand Down

0 comments on commit 5f910e9

Please sign in to comment.