Closed haxzie closed 4 years ago
Is this issue already fixed here in /src/Pages/Comments/index.jsx
?
const addComment = async () => {
console.log("adding comments...");
const comment = userComment;
// do not comment, if there is no comment text available
if (!(comment && comment.length > 0)) return;
setUserComment('')
setCommenting(true);
await client.live.comment(broadcastId, comment);
}
@ChoukseyKhushbu Yeah, that should have fixed it.
Describe the bug The input form in the live stream comments section allows users to send comments even without anything entered inside the textbox. Add a prevention logic to disable form submit if the input/value for comment is empty.
Expected behavior Should prevent the user from allowing to send empty comment text requests,