mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-15 12:59:09 +00:00
Forget correct device
This commit is contained in:
parent
1bc6fa9412
commit
d42c1df966
@ -98,7 +98,7 @@ class DeviceMenu extends Component<Props> {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { devices, onSelectDevice } = this.props;
|
||||
const { devices, onSelectDevice, forgetDevice } = this.props;
|
||||
const { transport } = this.props.connect;
|
||||
const { selectedDevice } = this.props.wallet;
|
||||
|
||||
@ -110,7 +110,7 @@ class DeviceMenu extends Component<Props> {
|
||||
devices={devices}
|
||||
selectedDevice={selectedDevice}
|
||||
onSelectDevice={onSelectDevice}
|
||||
forgetDevice={() => this.props.forgetDevice(selectedDevice)}
|
||||
forgetDevice={forgetDevice}
|
||||
/>
|
||||
<ButtonWrapper>
|
||||
{isWebUSB(transport) && (
|
||||
|
Loading…
Reference in New Issue
Block a user