diff --git a/packages/core/src/components/navigation/Navbar/Navbar.tsx b/packages/core/src/components/navigation/Navbar/Navbar.tsx index 9b19ba0d86..3f297025af 100644 --- a/packages/core/src/components/navigation/Navbar/Navbar.tsx +++ b/packages/core/src/components/navigation/Navbar/Navbar.tsx @@ -131,6 +131,9 @@ function Navbar({ const isRepresentative = b2b?.isRepresentative const isOrganizationEnabled = isFaststoreMyAccountEnabled && isRepresentative + const isLocalizationEnabled = + storeConfig.localization?.enabled && + localizationButton?.shouldDisplayLocalizationButton const handlerExpandSearch = useCallback(() => { setSearchExpanded(true) @@ -211,17 +214,16 @@ function Navbar({ /> )} - {isDesktop && - localizationButton?.shouldDisplayLocalizationButton && ( - - )} + {isDesktop && isLocalizationEnabled && ( + + )} {isDesktop && (isSessionReady ? ( diff --git a/packages/core/src/components/navigation/NavbarSlider/NavbarSlider.tsx b/packages/core/src/components/navigation/NavbarSlider/NavbarSlider.tsx index 76ffadbb6d..c8cf07e462 100644 --- a/packages/core/src/components/navigation/NavbarSlider/NavbarSlider.tsx +++ b/packages/core/src/components/navigation/NavbarSlider/NavbarSlider.tsx @@ -50,9 +50,12 @@ function NavbarSlider({ storeConfig.experimental?.enableFaststoreMyAccount const isRepresentative = b2b?.isRepresentative - const isOrganizationEnabled = isFaststoreMyAccountEnabled && isRepresentative + const isLocalizationEnabled = + storeConfig.localization?.enabled && + localizationButton?.shouldDisplayLocalizationButton + return ( )} - {localizationButton?.shouldDisplayLocalizationButton && ( + {isLocalizationEnabled && ( "PT") const localeText = sessionLocale?.split('-')[0].toUpperCase() ?? '' const currencyText = sessionCurrency?.code ?? ''