update fiat instead of crypto amount on fiat select

pull/448/head
slowbackspace 5 years ago
parent 40f61002b6
commit c745ec37b7

@ -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));
};
/*

@ -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));
};
/*

Loading…
Cancel
Save