fix use effect returning a boolean

This commit is contained in:
SrGooglo 2023-08-15 18:44:07 +00:00
parent 17bc39aa55
commit 2aa78bf9ea

View File

@ -23,17 +23,13 @@ export default (props) => {
React.useEffect(() => {
if (app.userData) {
app.navigation.goMain()
} else {
setRandomWallpaper()
return false
app.controls.openLoginForm({
defaultLocked: true,
})
}
setRandomWallpaper()
app.controls.openLoginForm({
defaultLocked: true,
})
return true
}, [])
return <div className="loginPage">