From c6c302ddbb7571386569cfccb20121d626211bd0 Mon Sep 17 00:00:00 2001 From: Sunny Gleason Date: Thu, 22 Aug 2019 11:56:50 -0400 Subject: [PATCH] fix: yarn lint --- src/v2/components/TourDeSol/Cards/index.jsx | 1 - src/v2/stores/nodes.js | 32 ++++++++++----------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/src/v2/components/TourDeSol/Cards/index.jsx b/src/v2/components/TourDeSol/Cards/index.jsx index 07573d51..fffe5c26 100644 --- a/src/v2/components/TourDeSol/Cards/index.jsx +++ b/src/v2/components/TourDeSol/Cards/index.jsx @@ -14,7 +14,6 @@ const Cards = ({ }) => { const classes = useStyles(); const { - network, validators, inactiveValidators, supply, diff --git a/src/v2/stores/nodes.js b/src/v2/stores/nodes.js index 2565693a..9a47fbad 100644 --- a/src/v2/stores/nodes.js +++ b/src/v2/stores/nodes.js @@ -8,22 +8,22 @@ class Store { }; clusterChanges = {}; - constructor() { - // observe(this, 'network', ({oldValue, newValue}) => { - // if (!keys(oldValue).length) { - // return; - // } - // this.clusterChanges = compose( - // mapValues.convert({cap: false})((value, key) => { - // if (eq('nodes', key)) { - // return calcChanges(oldValue[key].length, value.length); - // } - // return calcChanges(oldValue[key], value); - // }), - // pick(['nodes', 'supply']), - // )(newValue); - // }); - } + // constructor() { + // observe(this, 'network', ({oldValue, newValue}) => { + // if (!keys(oldValue).length) { + // return; + // } + // this.clusterChanges = compose( + // mapValues.convert({cap: false})((value, key) => { + // if (eq('nodes', key)) { + // return calcChanges(oldValue[key].length, value.length); + // } + // return calcChanges(oldValue[key], value); + // }), + // pick(['nodes', 'supply']), + // )(newValue); + // }); + // } updateClusterInfo = data => { data = JSON.parse(data);