FIX: Disregarding curent denomination on send screen, scanning address always resets it to BTC (closes #2088)

This commit is contained in:
Overtorment 2020-11-23 16:06:53 +00:00
parent 1b465c06a9
commit 6a7efaed91

View File

@ -278,11 +278,10 @@ export default class SendDetails extends Component {
if (this.state.fromWallet.isAddressValid(dataWithoutSchema)) {
recipients[[this.state.recipientsScrollIndex]].address = dataWithoutSchema;
const units = this.state.units;
units[this.state.recipientsScrollIndex] = BitcoinUnit.BTC; // also resetting current unit to BTC
units[this.state.recipientsScrollIndex] = this.state.amountUnit;
this.setState({
address: recipients,
isLoading: false,
amountUnit: BitcoinUnit.BTC,
units,
});
} else {