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:
parent
ec40c1fdeb
commit
8e03a96470
@ -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…
Reference in New Issue
Block a user