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

Commit

Permalink
Fixes #3171 (#3175)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngotchac authored and arkpar committed Nov 4, 2016
1 parent b05cb8c commit 6770918
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/src/modals/Transfer/GasPriceSelector/gasPriceSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ export default class GasPriceSelector extends Component {
const gasPriceBIdx = gasPriceAIdx + 1;

if (gasPriceBIdx === N + 1) {
const gasPrice = gasPrices[gasPriceAIdx];
const gasPrice = gasPrices[gasPriceAIdx].round();
this.props.onChange(event, gasPrice);
return;
}
Expand All @@ -548,7 +548,9 @@ export default class GasPriceSelector extends Component {
const gasPriceB = gasPrices[gasPriceBIdx];

const mult = Math.round((sliderValue % 1) * 100) / 100;
const gasPrice = gasPriceA.plus(gasPriceB.minus(gasPriceA).times(mult));
const gasPrice = gasPriceA
.plus(gasPriceB.minus(gasPriceA).times(mult))
.round();

this.setSliderValue(sliderValue, gasPrice);
this.props.onChange(event, gasPrice);
Expand Down
1 change: 1 addition & 0 deletions js/src/modals/Transfer/transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ export default class Transfer extends Component {
const { api } = this.context;
const { account } = this.props;
const { data, gas, gasPrice, recipient, value } = this.state;

const options = {
from: account.address,
to: recipient,
Expand Down

0 comments on commit 6770918

Please sign in to comment.