Skip to content

Commit d0b2ed6

Browse files
Fix on logic
1 parent da7d1ed commit d0b2ed6

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

app/web/components/Navigation/LoggedInMenu.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,9 @@ export default function LoggedInMenu({
291291

292292
return (
293293
<>
294-
{!isMobile && (
295-
<Box sx={{ marginRight: theme.spacing(1) }}>
296-
<LanguagePickerSelect />
297-
</Box>
298-
)}
294+
<Box sx={{ marginRight: theme.spacing(1) }}>
295+
<LanguagePickerSelect />
296+
</Box>
299297
<Tooltip title={t("global:nav.notifications")}>
300298
<NotificationMenuItemWrapper>
301299
<NotificationBadge count={notificationCount}>

app/web/components/Navigation/Navigation.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,11 @@ export default function Navigation() {
288288
const { t } = useTranslation(GLOBAL);
289289

290290
const shouldShowLanguagePickerSelect = useMemo(() => {
291-
if (isMobile && authState.authenticated) return false;
291+
if (!isMobile) return true;
292292

293-
return true;
293+
if (isMobile && authState.authenticated) return true;
294+
295+
return false;
294296
}, [authState.authenticated, isMobile]);
295297

296298
useEffect(() => setIsMounted(true), []);

0 commit comments

Comments
 (0)