1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

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.
This commit is contained in:
Mark Stacey 2020-04-15 11:41:34 -03:00 committed by GitHub
parent ec40c1fdeb
commit 8e03a96470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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