diff options
Diffstat (limited to 'app/client')
| -rw-r--r-- | app/client/dashboard/dashboardHeader.component.js | 2 | ||||
| -rw-r--r-- | app/client/system/system.reducer.js | 5 |
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' |
