mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-29 00:11:28 +00:00
fix: populate address if not in redux state
This commit is contained in:
parent
4ec85d4edb
commit
63183f58cd
1 changed files with 6 additions and 1 deletions
|
@ -13,7 +13,12 @@ type Props = {
|
||||||
|
|
||||||
class WalletAddress extends React.PureComponent<Props> {
|
class WalletAddress extends React.PureComponent<Props> {
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
this.props.checkAddressIsMine(this.props.receiveAddress);
|
const { checkAddressIsMine, receiveAddress, getNewAddress } = this.props;
|
||||||
|
if (!receiveAddress) {
|
||||||
|
getNewAddress();
|
||||||
|
} else {
|
||||||
|
checkAddressIsMine(receiveAddress);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue