1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-22 05:51:18 +00:00

update fiat instead of crypto amount on fiat select

This commit is contained in:
slowbackspace 2019-03-12 16:16:02 +01:00
parent 40f61002b6
commit c745ec37b7
2 changed files with 4 additions and 4 deletions

View File

@ -321,8 +321,8 @@ export const onLocalCurrencyChange = (localCurrency: {
localCurrency: localCurrency.value,
},
});
// Recalculates amount with new currency rates
dispatch(onLocalAmountChange(state.localAmount));
// Recalculates local amount with new currency rates
dispatch(onAmountChange(state.amount, true));
};
/*

View File

@ -277,8 +277,8 @@ export const onLocalCurrencyChange = (localCurrency: {
localCurrency: localCurrency.value,
},
});
// Recalculates amount with new currency rates
dispatch(onLocalAmountChange(state.localAmount));
// Recalculates local amount with new currency rates
dispatch(onAmountChange(state.amount, true));
};
/*