mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
fix use effect returning a boolean
This commit is contained in:
parent
014b19a906
commit
3b87fa895b
@ -23,17 +23,13 @@ export default (props) => {
|
|||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (app.userData) {
|
if (app.userData) {
|
||||||
app.navigation.goMain()
|
app.navigation.goMain()
|
||||||
|
} else {
|
||||||
|
setRandomWallpaper()
|
||||||
|
|
||||||
return false
|
app.controls.openLoginForm({
|
||||||
|
defaultLocked: true,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
setRandomWallpaper()
|
|
||||||
|
|
||||||
app.controls.openLoginForm({
|
|
||||||
defaultLocked: true,
|
|
||||||
})
|
|
||||||
|
|
||||||
return true
|
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
return <div className="loginPage">
|
return <div className="loginPage">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user