summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-05 00:41:56 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-05 00:41:56 +0200
commit8e286a37e398d614424e4ddc04808367e7ab0acd (patch)
treecf75762bb46e1f190a70a14132c56633e81f1d8f /app
parent8ddd82faf17b5c36f3e9888321bde06160d9eaf1 (diff)
following the leader..
Diffstat (limited to 'app')
-rw-r--r--app/client/dashboard/dashboardHeader.component.js2
-rw-r--r--app/client/system/system.reducer.js5
2 files changed, 4 insertions, 3 deletions
diff --git a/app/client/dashboard/dashboardHeader.component.js b/app/client/dashboard/dashboardHeader.component.js
index 508cbfa..62586b8 100644
--- a/app/client/dashboard/dashboardHeader.component.js
+++ b/app/client/dashboard/dashboardHeader.component.js
@@ -25,7 +25,7 @@ class DashboardHeader extends Component {
const { runner } = this.props
const gpu = runner.cpu
if (gpu.status === 'IDLE') {
- return null
+ return null
}
const task = gpu.task
const eta = ((task.epochs - (task.epoch || 0)) * 180 / 60) + " minutes"
diff --git a/app/client/system/system.reducer.js b/app/client/system/system.reducer.js
index 11baceb..27c248a 100644
--- a/app/client/system/system.reducer.js
+++ b/app/client/system/system.reducer.js
@@ -117,14 +117,15 @@ const systemReducer = (state = systemInitialState, action) => {
},
runner: action.runner,
}
- case types.system.rpc_connected:
+ case types.system.rpc_disconnected:
return {
...state,
rpc: {
status: 'disconnected',
connected: false,
error: null,
- }
+ },
+ runner: action.runner,
}
case types.system.load_site:
document.querySelector('title').innerHTML = action.site.name + '.cortex'