Skip to content

Commit

Permalink
Merge pull request #1172 from data-for-change/1171-bug-language-click…
Browse files Browse the repository at this point in the history
…-handler

Update LanguageMenu.tsx
  • Loading branch information
atalyaalon authored Dec 18, 2024
2 parents a7bc500 + aee238c commit 8dd3606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/organisms/LanguageMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ const LanguageMenu: FC = () => {
if (newsFlashStore.activeNewsFlashId) {
path = `newsflash/${newsFlashStore.activeNewsFlashId}`;
}
if (store.locationId) {
else if (store.locationId) {
path = `location/${store.locationId}`;
}
if (store.cityAndStreet) {
else if (store.cityAndStreet) {
path = `cityAndStreet/${store.cityAndStreet.city}/${store.cityAndStreet.street}`;
}
return window.location.assign(`${prefix}/${path}`);
Expand Down

0 comments on commit 8dd3606

Please sign in to comment.