From 087dd6e14d0d023e0a3209e0f4866bbf6eaecccd Mon Sep 17 00:00:00 2001 From: Stefan Lau Date: Sat, 14 Jun 2014 12:05:13 +0200 Subject: [PATCH] Fix charts for ids with dots --- lib/views/aggregatedMiners.js | 2 +- lib/views/revenue.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/views/aggregatedMiners.js b/lib/views/aggregatedMiners.js index 117ce5c..aa26ad9 100644 --- a/lib/views/aggregatedMiners.js +++ b/lib/views/aggregatedMiners.js @@ -19,7 +19,7 @@ module.exports = View.extend({ return _(val) .keys() .filter(function (key) { return key.split('.')[0] === 'currentHashrate'; }) - .map(function (key) { return key.split('.')[1]; }) + .map(function (key) { return key.split('.').slice(1).join('.'); }) .value(); }) .flatten() diff --git a/lib/views/revenue.js b/lib/views/revenue.js index 2893d95..b662d46 100644 --- a/lib/views/revenue.js +++ b/lib/views/revenue.js @@ -19,7 +19,7 @@ module.exports = View.extend({ return _(val) .keys() .filter(function (key) { return key.split('.')[0] === 'revenue'; }) - .map(function (key) { return key.split('.')[1]; }) + .map(function (key) { return key.split('.').slice(1).join('.'); }) .value(); }) .flatten()