From 8e286a37e398d614424e4ddc04808367e7ab0acd Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 5 Jun 2018 00:41:56 +0200 Subject: following the leader.. --- app/client/dashboard/dashboardHeader.component.js | 2 +- app/client/system/system.reducer.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'app') 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' -- cgit v1.2.3-70-g09d2