diff options
author | 2018-06-25 13:02:30 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:53 +0300 | |
commit | 28679bfba2d4160cd54fe368e5412aa622cd8c6e (patch) | |
tree | a532f4074a9492733a9bad67ed552d8bf18bb3ee /vnext/src/components/Chat.js | |
parent | cfc03954dcc9d4446e5993c6cdfb5e7e73d71a71 (diff) |
transform-class-properties
Diffstat (limited to 'vnext/src/components/Chat.js')
-rw-r--r-- | vnext/src/components/Chat.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vnext/src/components/Chat.js b/vnext/src/components/Chat.js index 79425c12..c4d9422f 100644 --- a/vnext/src/components/Chat.js +++ b/vnext/src/components/Chat.js @@ -11,13 +11,12 @@ export default class Chat extends React.Component { this.state = { chats: [] }; - this.loadChat = this.loadChat.bind(this); } componentWillMount() { this.loadChat(this.props.match.params.user); } - loadChat(uname) { + loadChat = (uname) => { const { hash } = this.props.visitor; this.setState({ chats: [] |