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:
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…
Reference in New Issue
Block a user