Skip to content

Commit

Permalink
Fix: 'Utrecht' stond altijd in hamburger-menu, ipv de actieve plaats
Browse files Browse the repository at this point in the history
  • Loading branch information
bartwr committed Nov 26, 2024
1 parent e25eda4 commit 653bb3d
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/components/AppNavigationMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ const AppNavigationMobile = ({

const title =
mapZoom >= 12 &&
activeMunicipalityInfo &&
activeMunicipalityInfo.CompanyName
activeMunicipalityInfo &&
activeMunicipalityInfo.CompanyName
? `Welkom in ${activeMunicipalityInfo.CompanyName}`
: `Welkom bij VeiligStallen`;

Expand Down Expand Up @@ -147,7 +147,7 @@ const AppNavigationMobile = ({
}}
>
De kortste weg naar een veilige plek voor je fiets{" "}
{mapZoom >= 12 ? "in Utrecht" : ""}
{mapZoom >= 12 ? `in ${activeMunicipalityInfo?.CompanyName}` : ""}
</p>
</header>

Expand Down Expand Up @@ -185,10 +185,9 @@ const AppNavigationMobile = ({
onClick={(e) => {
e.preventDefault();
clickItem(
`/${
mapZoom >= 12 && activeMunicipalityInfo
? activeMunicipalityInfo.UrlName
: "fietsberaad"
`/${mapZoom >= 12 && activeMunicipalityInfo
? activeMunicipalityInfo.UrlName
: "fietsberaad"
}/${x.Title ? x.Title : ""}`
);
}}
Expand All @@ -207,10 +206,9 @@ const AppNavigationMobile = ({
onClick={(e) => {
e.preventDefault();
clickItem(
`/${
mapZoom >= 12 && activeMunicipalityInfo
? activeMunicipalityInfo.UrlName
: "fietsberaad"
`/${mapZoom >= 12 && activeMunicipalityInfo
? activeMunicipalityInfo.UrlName
: "fietsberaad"
}/${x.Title ? x.Title : ""}`
);
}}
Expand Down

0 comments on commit 653bb3d

Please sign in to comment.