Fix gas price hydration (#650)

* Add repo wide prettier command to prepush

* Make config file explict, remove formatAll to prepush

* Fix gas price hydration

* Remove excess import

* Revert gasprice formatting
This commit is contained in:
HenryNguyen5 2017-12-20 23:15:56 -05:00 committed by Daniel Ternyak
parent 827ca95b94
commit 5c0ca266f3
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ import RootReducer from './reducers';
import promiseMiddleware from 'redux-promise-middleware';
import { getNodeConfigFromId } from 'utils/node';
import sagas from './sagas';
import { Wei } from 'libs/units';
import { gasPricetoBase } from 'libs/units';
const configureStore = () => {
const logger = createLogger({
@ -90,7 +90,7 @@ const configureStore = () => {
savedTransactionState && savedTransactionState.fields.gasPrice
? {
raw: savedTransactionState.fields.gasPrice.raw,
value: Wei(savedTransactionState.fields.gasPrice.value)
value: gasPricetoBase(+savedTransactionState.fields.gasPrice.raw)
}
: transactionInitialState.fields.gasPrice
}