diff --git a/js/src/ui/GasPriceEditor/store.js b/js/src/ui/GasPriceEditor/store.js index e7d0bb537..119da4615 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 3a7e0c647..6501c72bf 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(); }); });