Skip to content

Commit

Permalink
fix(22851): check if active device to prevent autoconnect for hw
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaryatrh committed Jun 25, 2024
1 parent 2ccf3cf commit 6635892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/pages/create-account/connect-hardware/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class ConnectHardwareForm extends Component {
]) {
const path = this.props.defaultHdPaths[device];
const unlocked = await this.props.checkHardwareStatus(device, path);
if (unlocked) {
if (unlocked && this.state.device) {
this.setState({ unlocked: true });
this.getPage(device, 0, path);
}
Expand Down

0 comments on commit 6635892

Please sign in to comment.