parent
7bca4aa24f
commit
2411e674eb
@ -180,7 +180,7 @@ export default class GasPriceEditor {
|
|||||||
// NOTE fetching histogram may fail if there is not enough data.
|
// NOTE fetching histogram may fail if there is not enough data.
|
||||||
// We fallback to empty histogram.
|
// We fallback to empty histogram.
|
||||||
this._api.parity.gasPriceHistogram().catch(() => ({
|
this._api.parity.gasPriceHistogram().catch(() => ({
|
||||||
bucket_bounds: [],
|
bucketBounds: [],
|
||||||
counts: []
|
counts: []
|
||||||
})),
|
})),
|
||||||
this._api.eth.gasPrice(),
|
this._api.eth.gasPrice(),
|
||||||
|
@ -96,6 +96,7 @@ describe('ui/GasPriceEditor/Store', () => {
|
|||||||
|
|
||||||
setImmediate(() => {
|
setImmediate(() => {
|
||||||
expect(store.histogram).not.to.be.null;
|
expect(store.histogram).not.to.be.null;
|
||||||
|
expect(store.histogram.bucketBounds).not.to.be.null;
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user