fix(comments): clear input on publish
This commit is contained in:
parent
bf18d61f1f
commit
94eb88bdd3
@ -66,6 +66,7 @@ export function handleCommentSubmit(
|
||||
return newCommentEvents
|
||||
})
|
||||
}, 15000)
|
||||
return true
|
||||
} else {
|
||||
log(true, LogType.Error, 'Publishing reply failed.')
|
||||
setCommentEvents((prev) => {
|
||||
@ -81,8 +82,8 @@ export function handleCommentSubmit(
|
||||
setVisible(newCommentEvents)
|
||||
return newCommentEvents
|
||||
})
|
||||
}
|
||||
return false
|
||||
}
|
||||
} catch (error) {
|
||||
toast.error('An error occurred in publishing reply.')
|
||||
log(true, LogType.Error, 'An error occurred in publishing reply.', error)
|
||||
|
Loading…
x
Reference in New Issue
Block a user