1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-07-12 17:48:11 +00:00

fix clear button

This commit is contained in:
slowbackspace 2019-03-13 14:34:49 +01:00
parent f0c8c0e100
commit 9fbb51fd39

View File

@ -205,6 +205,9 @@ export const onClear = (): AsyncAction => async (
initialState.selectedFeeLevel initialState.selectedFeeLevel
); );
// initial local currency is set according to wallet settings
const { localCurrency } = getState().wallet;
dispatch({ dispatch({
type: SEND.CLEAR, type: SEND.CLEAR,
networkType: 'ethereum', networkType: 'ethereum',
@ -213,6 +216,7 @@ export const onClear = (): AsyncAction => async (
networkName: network.shortcut, networkName: network.shortcut,
networkSymbol: network.symbol, networkSymbol: network.symbol,
currency: network.symbol, currency: network.symbol,
localCurrency,
feeLevels, feeLevels,
selectedFeeLevel, selectedFeeLevel,
recommendedGasPrice: gasPrice.toString(), recommendedGasPrice: gasPrice.toString(),