Fix adv.comments issues #209

Merged
enes merged 7 commits from fixes/adv-comments-30-1-25 into staging 2025-01-30 13:43:13 +00:00
Showing only changes of commit 94eb88bdd3 - Show all commits

View File

@ -66,6 +66,7 @@ export function handleCommentSubmit(
return newCommentEvents return newCommentEvents
}) })
}, 15000) }, 15000)
return true
} else { } else {
log(true, LogType.Error, 'Publishing reply failed.') log(true, LogType.Error, 'Publishing reply failed.')
setCommentEvents((prev) => { setCommentEvents((prev) => {
@ -81,8 +82,8 @@ export function handleCommentSubmit(
setVisible(newCommentEvents) setVisible(newCommentEvents)
return newCommentEvents return newCommentEvents
}) })
}
return false return false
}
} catch (error) { } catch (error) {
toast.error('An error occurred in publishing reply.') toast.error('An error occurred in publishing reply.')
log(true, LogType.Error, 'An error occurred in publishing reply.', error) log(true, LogType.Error, 'An error occurred in publishing reply.', error)