Fixing histogram again (#4464)

This commit is contained in:
Tomasz Drwięga 2017-02-07 19:39:04 +01:00 committed by Jaco Greeff
parent 449e85743d
commit 42eec0f6bd
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();
});
});