aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Chat.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-25 13:02:30 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit28679bfba2d4160cd54fe368e5412aa622cd8c6e (patch)
treea532f4074a9492733a9bad67ed552d8bf18bb3ee /vnext/src/components/Chat.js
parentcfc03954dcc9d4446e5993c6cdfb5e7e73d71a71 (diff)
transform-class-properties
Diffstat (limited to 'vnext/src/components/Chat.js')
-rw-r--r--vnext/src/components/Chat.js3
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: []