bug: navigate global when logged out

This commit is contained in:
Kieran 2023-03-29 14:56:34 +01:00
parent 94c3523712
commit 79c88df292
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -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,
});
}