aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/index.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-06 01:32:43 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit7f25b0f261b5a5fc2696054004fb24673375b91b (patch)
tree38ee591e176b4799e39eff7a16f1950e017e7bb4 /vnext/src/index.js
parent88732ba8c06c23a93f7248b6eabc182f38be3d33 (diff)
Proptypes & eslint
Diffstat (limited to 'vnext/src/index.js')
-rw-r--r--vnext/src/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js
index fda85fed..2299ab56 100644
--- a/vnext/src/index.js
+++ b/vnext/src/index.js
@@ -42,7 +42,7 @@ class App extends React.Component {
let url = `${proto}//api.juick.com/ws/?${qs.stringify(params)}`;
this.ws = new WebSocket(url);
this.ws.onopen = () => {
- console.log("online");
+ console.log('online');
}
this.ws.onclose = () => {
console.log('offline');
@@ -211,7 +211,7 @@ class App extends React.Component {
user.iread &&
<div className="iread">
{
- user.iread.map(u => <Avatar user={u} />)
+ user.iread.map(u => <Avatar user={u} key={u.uid} />)
}
</div>
}