Skip to content

Commit d2dd25e

Browse files
authored
Merge pull request #1178 from coopTilleuls/fix-og-description
fix og description
2 parents 84e3e41 + 8ea91b5 commit d2dd25e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

pwa/pages/_app.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function MyApp({
6464
<meta property="og:title" content="Rustine Libre" />
6565
<meta
6666
property="og:description"
67-
content="Leader de la réparation à domicile, cyclofix est disponible à Lille"
67+
content="Rustine Libre, la réparation de vos vélos sur Lille Métropole"
6868
/>
6969
<meta property="og:url" content="https://rustinelibre.fr" />
7070
<meta property="og:image" content="img/og-image.jpg" />

pwa/utils/apiCity.ts

-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const nominatimCities = async (search: string) => {
2222
};
2323

2424
const gouvCities = async (search: string) => {
25-
search = formatSearch(search);
2625
search = encodeURIComponent(search);
2726

2827
try {
@@ -38,10 +37,6 @@ const gouvCities = async (search: string) => {
3837
}
3938
};
4039

41-
const formatSearch = (search: string): string => {
42-
return search.replaceAll("'", ' ');
43-
};
44-
4540
export const searchStreet = async (search: string, city: City | null) => {
4641
if (city) {
4742
search = encodeURIComponent(`${search} ${city.name}`);

0 commit comments

Comments
 (0)