mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-28 04:46:28 -08:00
fix dms nav
This commit is contained in:
2 files changed
+8
-1
No files matched your search
@@ -0,0 +1,5 @@
|
||||
---
|
||||
default: patch
|
||||
---
|
||||
|
||||
Fix dms navigation not navigating to dms when local storage is messed up.
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user