Skip to content

Commit

Permalink
Update LanguageMenu.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
atalyaalon authored Dec 18, 2024
1 parent a7bc500 commit aee238c
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 aee238c

Please sign in to comment.