fixing the bug fix

This commit is contained in:
Sendou 2019-11-18 18:50:09 +02:00
parent 477d5f3baa
commit acd812ce09

View File

@ -18,7 +18,7 @@ const UserPage = () => {
const userLeanQuery = useQuery(userLean)
useEffect(() => {
if (loading && data) return
if (loading || !data.searchForUser) return
document.title = `${data.searchForUser.username} - sendou.ink`
}, [loading, data])