diff --git a/app/routes/app/components/App.js b/app/routes/app/components/App.js
index 0b243af9..eb7238ce 100644
--- a/app/routes/app/components/App.js
+++ b/app/routes/app/components/App.js
@@ -1,5 +1,6 @@
// @flow
import React, { Component } from 'react'
+import Websocket from 'react-websocket'
import Form from './components/Form'
import Nav from './components/Nav.js'
import styles from './App.scss'
@@ -55,6 +56,12 @@ class App extends Component {
{children}
+
+ console.log('data: ', data)}
+ />
)
}
diff --git a/app/routes/wallet/components/components/Channels/Channels.js b/app/routes/wallet/components/components/Channels/Channels.js
index 9bb434d6..029b09c4 100644
--- a/app/routes/wallet/components/components/Channels/Channels.js
+++ b/app/routes/wallet/components/components/Channels/Channels.js
@@ -42,15 +42,15 @@ class Channels extends Component {
{
- !channelsLoading && allChannels.length ?
- allChannels.map(channel => {
+ !channelsLoading ?
+ allChannels.map((channel, index) => {
if (channel.hasOwnProperty('blocks_till_open')) {
return (
-
+
)
} else if (channel.hasOwnProperty('closing_txid')) {
return (
-
+
)
} else {
return (
diff --git a/package-lock.json b/package-lock.json
index 10aff8a5..9d1c740c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12500,6 +12500,11 @@
"warning": "3.0.0"
}
},
+ "react-websocket": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/react-websocket/-/react-websocket-1.1.7.tgz",
+ "integrity": "sha1-CnYfPeNU1HMfVTQ0VuA7H2AFtJI="
+ },
"read-config-file": {
"version": "0.1.3",
"resolved": "https://registry.npmjs.org/read-config-file/-/read-config-file-0.1.3.tgz",
diff --git a/package.json b/package.json
index 1cf065e6..10601a78 100644
--- a/package.json
+++ b/package.json
@@ -203,6 +203,7 @@
"react-router-redux": "^5.0.0-alpha.6",
"react-svg": "^2.1.21",
"react-svg-morph": "^0.1.10",
+ "react-websocket": "^1.1.7",
"redux": "^3.7.1",
"redux-thunk": "^2.2.0",
"reselect": "^3.0.1",