fix dms nav

This commit is contained in:
7w1 committed 2026-04-07 10:30:24 -05:00
1 parent e1f1168e16
commit dfe096b2bf
2 files changed
+8 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
default: patch
---
Fix dms navigation not navigating to dms when local storage is messed up.
+3 -1
View File
@@ -82,7 +82,9 @@ export function DirectTab() {
const handleDirectClick = () => {
const activePath = navToActivePath.get('direct');
if (activePath && screenSize !== ScreenSize.Mobile) {
const activePathname = activePath?.pathname;
const isValidDirectPath = typeof activePathname === 'string' && activePathname.startsWith('/direct/');
if (activePath && isValidDirectPath && screenSize !== ScreenSize.Mobile) {
navigate(joinPathComponent(activePath));
return;
}