Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Fixing histogram again (#4464)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusdrw authored and jacogr committed Feb 7, 2017
1 parent 7bca4aa commit 8790d85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/ui/GasPriceEditor/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 1 addition & 0 deletions js/src/ui/GasPriceEditor/store.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
Expand Down

0 comments on commit 8790d85

Please sign in to comment.