Lint
This commit is contained in:
parent
2f2c9f2c57
commit
6ade60c5a8
|
@ -32,7 +32,6 @@ export default function CreateDateDocPage() {
|
||||||
'Will I find a partner in the next 3 months?'
|
'Will I find a partner in the next 3 months?'
|
||||||
)
|
)
|
||||||
|
|
||||||
const [error, setError] = useState('')
|
|
||||||
const [isSubmitting, setIsSubmitting] = useState(false)
|
const [isSubmitting, setIsSubmitting] = useState(false)
|
||||||
|
|
||||||
const { editor, upload } = useTextEditor({
|
const { editor, upload } = useTextEditor({
|
||||||
|
@ -82,11 +81,8 @@ export default function CreateDateDocPage() {
|
||||||
question,
|
question,
|
||||||
}
|
}
|
||||||
|
|
||||||
const result = await createPost(newPost).catch((e) => {
|
const result = await createPost(newPost)
|
||||||
console.log(e)
|
|
||||||
setError('There was an error creating the post, please try again')
|
|
||||||
return e
|
|
||||||
})
|
|
||||||
if (result.post) {
|
if (result.post) {
|
||||||
await Router.push(`/date-docs/${user.username}`)
|
await Router.push(`/date-docs/${user.username}`)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user