From 604ea5d684b05f63ab2a32f68fdf50b8bbe38498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Thu, 10 Aug 2017 18:48:03 +0200 Subject: [PATCH] Time should not contribue to overall status. (#6276) --- js/src/redux/providers/status.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/src/redux/providers/status.js b/js/src/redux/providers/status.js index fc5dc38ba..e58fcf6c1 100644 --- a/js/src/redux/providers/status.js +++ b/js/src/redux/providers/status.js @@ -227,12 +227,12 @@ export default class Status { } _overallStatus = (health) => { - const all = [health.peers, health.sync, health.time].filter(x => x); - const allNoTime = [health.peers, health.sync].filter(x => x); + const allWithTime = [health.peers, health.sync, health.time].filter(x => x); + const all = [health.peers, health.sync].filter(x => x); const statuses = all.map(x => x.status); const bad = statuses.find(x => x === STATUS_BAD); - const needsAttention = allNoTime.map(x => x.status).find(x => x === STATUS_WARN); - const message = all.map(x => x.message).filter(x => x); + const needsAttention = statuses.find(x => x === STATUS_WARN); + const message = allWithTime.map(x => x.message).filter(x => x); if (all.length) { return {