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