tour fix
This commit is contained in:
@@ -31,7 +31,7 @@ const SAVE_LEAVES = [
|
||||
]
|
||||
|
||||
export default function HomePage() {
|
||||
const { user, userId, mongoUser, secretKey, loading } = useAuth()
|
||||
const { user, userId, mongoUser, secretKey, loading, refreshMongoUser } = useAuth()
|
||||
const navigate = useNavigate()
|
||||
const [entry, setEntry] = useState('')
|
||||
const [title, setTitle] = useState('')
|
||||
@@ -63,7 +63,8 @@ export default function HomePage() {
|
||||
async function markTutorialDone() {
|
||||
if (!user || !userId) return
|
||||
const token = await user.getIdToken()
|
||||
updateUserProfile(userId, { tutorial: true }, token).catch(console.error)
|
||||
await updateUserProfile(userId, { tutorial: true }, token).catch(console.error)
|
||||
refreshMongoUser()
|
||||
}
|
||||
|
||||
const handleStartTour = () => {
|
||||
|
||||
Reference in New Issue
Block a user