fix use effect returning a boolean

This commit is contained in:
SrGooglo 2023-08-15 18:44:07 +00:00
parent 014b19a906
commit 3b87fa895b

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">