parent
7bca4aa24f
commit
2411e674eb
@ -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(),
|
||||
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user