Skip to content

Commit

Permalink
Merge pull request #1178 from coopTilleuls/fix-og-description
Browse files Browse the repository at this point in the history
fix og description
  • Loading branch information
davy-beauzil committed Mar 21, 2024
2 parents 84e3e41 + 8ea91b5 commit d2dd25e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion pwa/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function MyApp({
<meta property="og:title" content="Rustine Libre" />
<meta
property="og:description"
content="Leader de la réparation à domicile, cyclofix est disponible à Lille"
content="Rustine Libre, la réparation de vos vélos sur Lille Métropole"
/>
<meta property="og:url" content="https://rustinelibre.fr" />
<meta property="og:image" content="img/og-image.jpg" />
Expand Down
5 changes: 0 additions & 5 deletions pwa/utils/apiCity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const nominatimCities = async (search: string) => {
};

const gouvCities = async (search: string) => {
search = formatSearch(search);
search = encodeURIComponent(search);

try {
Expand All @@ -38,10 +37,6 @@ const gouvCities = async (search: string) => {
}
};

const formatSearch = (search: string): string => {
return search.replaceAll("'", ' ');
};

export const searchStreet = async (search: string, city: City | null) => {
if (city) {
search = encodeURIComponent(`${search} ${city.name}`);
Expand Down

0 comments on commit d2dd25e

Please sign in to comment.