mirror of
https://github.com/trezor/trezor-wallet
synced 2025-07-26 00:18: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,
|
localCurrency: localCurrency.value,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
// Recalculates amount with new currency rates
|
// Recalculates local amount with new currency rates
|
||||||
dispatch(onLocalAmountChange(state.localAmount));
|
dispatch(onAmountChange(state.amount, true));
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -277,8 +277,8 @@ export const onLocalCurrencyChange = (localCurrency: {
|
|||||||
localCurrency: localCurrency.value,
|
localCurrency: localCurrency.value,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
// Recalculates amount with new currency rates
|
// Recalculates local amount with new currency rates
|
||||||
dispatch(onLocalAmountChange(state.localAmount));
|
dispatch(onAmountChange(state.amount, true));
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user