Fix unlock header toggle logic (#1454)

This commit is contained in:
William O'Beirne 2018-04-05 17:23:15 -04:00 committed by Daniel Ternyak
parent c3d1e4e3af
commit acd1610083

View File

@ -25,7 +25,7 @@ export class UnlockHeader extends React.PureComponent<Props, State> {
public componentDidUpdate(prevProps: Props) { public componentDidUpdate(prevProps: Props) {
if (this.props.wallet !== prevProps.wallet) { if (this.props.wallet !== prevProps.wallet) {
this.setState({ isExpanded: !this.state.isExpanded }); this.setState({ isExpanded: !this.props.wallet });
} }
} }