|
|
@ -17,6 +17,7 @@ export default class PermissionConnect extends Component { |
|
|
|
getRequestAccountTabIds: PropTypes.func.isRequired, |
|
|
|
getRequestAccountTabIds: PropTypes.func.isRequired, |
|
|
|
getCurrentWindowTab: PropTypes.func.isRequired, |
|
|
|
getCurrentWindowTab: PropTypes.func.isRequired, |
|
|
|
accounts: PropTypes.array.isRequired, |
|
|
|
accounts: PropTypes.array.isRequired, |
|
|
|
|
|
|
|
currentAddress: PropTypes.string.isRequired, |
|
|
|
origin: PropTypes.string, |
|
|
|
origin: PropTypes.string, |
|
|
|
showNewAccountModal: PropTypes.func.isRequired, |
|
|
|
showNewAccountModal: PropTypes.func.isRequired, |
|
|
|
newAccountNumber: PropTypes.number.isRequired, |
|
|
|
newAccountNumber: PropTypes.number.isRequired, |
|
|
@ -46,9 +47,7 @@ export default class PermissionConnect extends Component { |
|
|
|
|
|
|
|
|
|
|
|
state = { |
|
|
|
state = { |
|
|
|
redirecting: false, |
|
|
|
redirecting: false, |
|
|
|
selectedAccountAddresses: this.props.accounts.length === 1 |
|
|
|
selectedAccountAddresses: new Set([this.props.currentAddress]), |
|
|
|
? new Set([this.props.accounts[0].address]) |
|
|
|
|
|
|
|
: new Set(), |
|
|
|
|
|
|
|
permissionsApproved: null, |
|
|
|
permissionsApproved: null, |
|
|
|
origin: this.props.origin, |
|
|
|
origin: this.props.origin, |
|
|
|
targetDomainMetadata: this.props.targetDomainMetadata || {}, |
|
|
|
targetDomainMetadata: this.props.targetDomainMetadata || {}, |
|
|
|