Skip to content

Commit

Permalink
Fix searching in the international region (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
hkamran80 authored Nov 2, 2024
1 parent 07a4060 commit 34dab54
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ function sendSearch(query) {
index.search(query, options).then(({ hits }) => {
const entries = hits
.map((hit) => hitToAPI(hit))
.filter(
([, entry]) => !entry.regions || entry.regions.includes(region),
.filter(([, entry]) =>
region !== "int"
? !entry.regions || entry.regions.includes(region)
: true,
);

if (entries.length !== 0) {
Expand Down

0 comments on commit 34dab54

Please sign in to comment.