aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/index.js
diff options
context:
space:
mode:
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>
}