Skip to content

Conversation

@chmus
Copy link

@chmus chmus commented Sep 24, 2020

Chat currently does not check whether the message is 'all white space' text. This small addition should fix it.
However, I am currently unable to test if this will work, so it can be a wrong fix.

P. S. By the way, I am experienced neither in making pull requests nor in React 😅. Hopefully, it will not cause any problems.

Chat currently does not check whether the message is 'all white space' text. This small addition should fix it.
However, I am currently unable to test if this will work, so it can be a wrong fix.
@hakanrw
Copy link

hakanrw commented Sep 27, 2020

Looks fine, but would be shorter and possibly faster if you used String.prototype.trim()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants