Skip to content

Commit 8dd3606

Browse files
authored
Merge pull request #1172 from data-for-change/1171-bug-language-click-handler
Update LanguageMenu.tsx
2 parents a7bc500 + aee238c commit 8dd3606

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/organisms/LanguageMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ const LanguageMenu: FC = () => {
3535
if (newsFlashStore.activeNewsFlashId) {
3636
path = `newsflash/${newsFlashStore.activeNewsFlashId}`;
3737
}
38-
if (store.locationId) {
38+
else if (store.locationId) {
3939
path = `location/${store.locationId}`;
4040
}
41-
if (store.cityAndStreet) {
41+
else if (store.cityAndStreet) {
4242
path = `cityAndStreet/${store.cityAndStreet.city}/${store.cityAndStreet.street}`;
4343
}
4444
return window.location.assign(`${prefix}/${path}`);

0 commit comments

Comments
 (0)