bug: navigate global when logged out
This commit is contained in:
parent
94c3523712
commit
79c88df292
@ -58,7 +58,8 @@ export default function RootPage() {
|
||||
|
||||
useEffect(() => {
|
||||
if (location.pathname === "/") {
|
||||
navigate(unwrap(preferences.defaultRootTab ?? tab.data), {
|
||||
const t = pubKey ? preferences.defaultRootTab ?? tab.data : "/global";
|
||||
navigate(t, {
|
||||
replace: true,
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user