From 2411e674eb73889e9a7416a4db1d5e8d4b8e2470 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Tue, 7 Feb 2017 19:55:58 +0100 Subject: [PATCH] Fixing histogram again (#4464) (#4467) --- js/src/ui/GasPriceEditor/store.js | 2 +- js/src/ui/GasPriceEditor/store.spec.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/js/src/ui/GasPriceEditor/store.js b/js/src/ui/GasPriceEditor/store.js index 867fca11a..62c3f840c 100644 --- a/js/src/ui/GasPriceEditor/store.js +++ b/js/src/ui/GasPriceEditor/store.js @@ -180,7 +180,7 @@ export default class GasPriceEditor { // NOTE fetching histogram may fail if there is not enough data. // We fallback to empty histogram. this._api.parity.gasPriceHistogram().catch(() => ({ - bucket_bounds: [], + bucketBounds: [], counts: [] })), this._api.eth.gasPrice(), diff --git a/js/src/ui/GasPriceEditor/store.spec.js b/js/src/ui/GasPriceEditor/store.spec.js index e4c0f0849..36d02c8c4 100644 --- a/js/src/ui/GasPriceEditor/store.spec.js +++ b/js/src/ui/GasPriceEditor/store.spec.js @@ -96,6 +96,7 @@ describe('ui/GasPriceEditor/Store', () => { setImmediate(() => { expect(store.histogram).not.to.be.null; + expect(store.histogram.bucketBounds).not.to.be.null; done(); }); });