1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-25 16:38:08 +00:00

Forget correct device

This commit is contained in:
Vasek Mlejnsky 2018-09-25 14:41:34 +02:00
parent 1bc6fa9412
commit d42c1df966

View File

@ -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) && (