mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-28 02:30:52 +00:00
Fix unlock header toggle logic (#1454)
This commit is contained in:
parent
c3d1e4e3af
commit
acd1610083
@ -25,7 +25,7 @@ export class UnlockHeader extends React.PureComponent<Props, State> {
|
||||
|
||||
public componentDidUpdate(prevProps: Props) {
|
||||
if (this.props.wallet !== prevProps.wallet) {
|
||||
this.setState({ isExpanded: !this.state.isExpanded });
|
||||
this.setState({ isExpanded: !this.props.wallet });
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user