diff --git a/ui/app/components/app/account-panel.js b/ui/app/components/app/account-panel.js index 21ee01aa9..36517f474 100644 --- a/ui/app/components/app/account-panel.js +++ b/ui/app/components/app/account-panel.js @@ -10,11 +10,14 @@ export default class AccountPanel extends Component { isFauceting: PropTypes.bool, } + static defaultProps = { + identity: {}, + account: {}, + isFauceting: false, + } + render () { - const state = this.props - const identity = state.identity || {} - const account = state.account || {} - const isFauceting = state.isFauceting + const { identity, account, isFauceting } = this.props const panelState = { key: `accountPanel${identity.address}`,