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:
parent
827ca95b94
commit
5c0ca266f3
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue