Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[photos][web] Use locale-independent place search casing

AswinAsokf66c3326718a
diff --git a/web/apps/photos/src/components/gallery/PlacesList.tsx b/web/apps/photos/src/components/gallery/PlacesList.tsx
index 21160c264d..48e7214322 100644
--- a/web/apps/photos/src/components/gallery/PlacesList.tsx
+++ b/web/apps/photos/src/components/gallery/PlacesList.tsx
@@ -52,9 +52,9 @@ export const PlacesList = ({
}, [files]);
const currentResult = result?.files === files ? result : undefined;
- const query = searchQuery.trim().toLocaleLowerCase();
+ const query = searchQuery.trim().toLowerCase();
const matchingGroups = currentResult?.groups?.filter(({ city }) =>
- `${city.name}, ${city.country}`.toLocaleLowerCase().includes(query),
+ `${city.name}, ${city.country}`.toLowerCase().includes(query),
);
return (