Skip to content

Commit

Permalink
Patch for i18n_viz modes
Browse files Browse the repository at this point in the history
  • Loading branch information
wbazant committed Feb 1, 2025
1 parent 162b7f3 commit 648db43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/table/ShareTheHarvestTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ const ShareTheHarvestTable = () => {
const translatedCountry = translatedCountries[item.country] || item.country
const keywords = [translatedCountry, item.state, item.city, item.name]
return keywords.some(
(keyword) => keyword && keyword.toLowerCase().includes(query),
(keyword) =>
keyword && keyword.toLowerCase && keyword.toLowerCase().includes(query),
)
})

Expand Down

0 comments on commit 648db43

Please sign in to comment.