Rename non-existent `selectedAccount` prop to `fromAccount` (#8337)

The prop passed into the SignatureRequestHeader was changed from
`selectedAccount` to `fromAccount` in #8079, but the header component
itself was never updated to use the new prop name.
feature/default_network_editable
Mark Stacey 5 years ago committed by GitHub
parent ec40c1fdeb
commit 8e03a96470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      ui/app/components/app/signature-request/signature-request-header/signature-request-header.component.js

@ -5,19 +5,19 @@ import NetworkDisplay from '../../network-display'
export default class SignatureRequestHeader extends PureComponent {
static propTypes = {
selectedAccount: PropTypes.object,
fromAccount: PropTypes.object,
}
render () {
const { selectedAccount } = this.props
const { fromAccount } = this.props
return (
<div className="signature-request-header">
<div className="signature-request-header--account">
{selectedAccount && (
{fromAccount && (
<AccountListItem
displayBalance={false}
account={selectedAccount}
account={fromAccount}
/>
)}
</div>

Loading…
Cancel
Save