From aee238c861ad81c8887b3730b20f98afcbace07a Mon Sep 17 00:00:00 2001 From: Atalya Alon <20992625+atalyaalon@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:39:30 +0200 Subject: [PATCH] Update LanguageMenu.tsx --- src/components/organisms/LanguageMenu.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/organisms/LanguageMenu.tsx b/src/components/organisms/LanguageMenu.tsx index 0a2d1ad0..a1e339eb 100644 --- a/src/components/organisms/LanguageMenu.tsx +++ b/src/components/organisms/LanguageMenu.tsx @@ -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}`);