chore: fix initial state

This commit is contained in:
Steven
2024-06-03 23:15:37 +08:00
parent 769b474bdc
commit e0e4a1af8f
3 changed files with 9 additions and 5 deletions

View File

@ -13,7 +13,9 @@ function App() {
// Redirect to sign up page if no instance owner.
useEffect(() => {
if (!workspaceStore.profile.owner) {
navigateTo("/auth/signup");
navigateTo("/auth/signup", {
replace: true,
});
}
}, [workspaceStore.profile]);