mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
FIX: Receive address was not being rendered
This commit is contained in:
parent
183135d910
commit
b341f8b5c3
@ -36,7 +36,7 @@ export default class ReceiveDetails extends Component {
|
|||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
secret: secret,
|
secret: secret,
|
||||||
addressText: '',
|
address: '',
|
||||||
customLabel: '',
|
customLabel: '',
|
||||||
customAmount: 0,
|
customAmount: 0,
|
||||||
bip21encoded: undefined,
|
bip21encoded: undefined,
|
||||||
@ -73,7 +73,6 @@ export default class ReceiveDetails extends Component {
|
|||||||
}
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
address: address,
|
address: address,
|
||||||
addressText: address,
|
|
||||||
});
|
});
|
||||||
} else if (wallet.chain === Chain.OFFCHAIN) {
|
} else if (wallet.chain === Chain.OFFCHAIN) {
|
||||||
try {
|
try {
|
||||||
@ -88,6 +87,7 @@ export default class ReceiveDetails extends Component {
|
|||||||
BlueApp.saveToDisk(); // caching whatever getAddressAsync() generated internally
|
BlueApp.saveToDisk(); // caching whatever getAddressAsync() generated internally
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.warn(address)
|
||||||
this.setState({
|
this.setState({
|
||||||
address: address,
|
address: address,
|
||||||
});
|
});
|
||||||
@ -217,7 +217,7 @@ export default class ReceiveDetails extends Component {
|
|||||||
getRef={c => (this.qrCodeSVG = c)}
|
getRef={c => (this.qrCodeSVG = c)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<BlueCopyTextToClipboard text={this.state.isCustom ? this.state.bip21encoded : this.state.addressText} />
|
<BlueCopyTextToClipboard text={this.state.isCustom ? this.state.bip21encoded : this.state.address} />
|
||||||
</View>
|
</View>
|
||||||
<View style={{ alignItems: 'center', alignContent: 'flex-end', marginBottom: 24 }}>
|
<View style={{ alignItems: 'center', alignContent: 'flex-end', marginBottom: 24 }}>
|
||||||
<BlueButtonLink title={loc.receive.details.setAmount} onPress={this.showCustomAmountModal} />
|
<BlueButtonLink title={loc.receive.details.setAmount} onPress={this.showCustomAmountModal} />
|
||||||
|
Loading…
Reference in New Issue
Block a user