Fixing histogram again (#4464) (#4467)

This commit is contained in:
Jaco Greeff 2017-02-07 19:55:58 +01:00 committed by GitHub
parent 7bca4aa24f
commit 2411e674eb
2 changed files with 2 additions and 1 deletions

View File

@ -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(),

View File

@ -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();
});
});