Merge pull request #4314 from matrix-org/travis/react-warnings/2-code-quality

Fix a number of minor code quality issues
This commit is contained in:
Travis Ralston 2020-04-01 11:13:46 -06:00 committed by GitHub
commit 0fcbe40bec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 12 additions and 18 deletions

View file

@ -79,7 +79,7 @@ export default createReactClass({
},
onDeviceVerificationChanged: function(userId, device) {
if (userId == this.props.event.getSender()) {
if (userId === this.props.event.getSender()) {
this.refreshDevice().then((dev) => {
this.setState({ device: dev });
});