mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-29 17:31:00 +00:00
Fixed clicking on device menu
This commit is contained in:
parent
4ad60a8c52
commit
c0e81f8859
@ -115,7 +115,7 @@ export class DeviceDropdown extends Component<Props> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deviceMenuItems.push({ type: 'settings', label: 'Device settings' });
|
deviceMenuItems.push({ type: 'settings', label: 'Device settings' });
|
||||||
if (selectedDevice.features.passphrase_protection && selectedDevice.connected && selected.available) {
|
if (selectedDevice.features.passphrase_protection && selectedDevice.connected && selectedDevice.available) {
|
||||||
deviceMenuItems.push({ type: 'clone', label: 'Create hidden wallet' });
|
deviceMenuItems.push({ type: 'clone', label: 'Create hidden wallet' });
|
||||||
}
|
}
|
||||||
//if (selected.remember) {
|
//if (selected.remember) {
|
||||||
@ -124,7 +124,7 @@ export class DeviceDropdown extends Component<Props> {
|
|||||||
|
|
||||||
|
|
||||||
const deviceMenuButtons = deviceMenuItems.map((item, index) => (
|
const deviceMenuButtons = deviceMenuItems.map((item, index) => (
|
||||||
<div key={item.type} className={item.type} onClick={event => this.onDeviceMenuClick(item, selected)}>{item.label}</div>
|
<div key={item.type} className={item.type} onClick={event => this.onDeviceMenuClick(item, selectedDevice)}>{item.label}</div>
|
||||||
));
|
));
|
||||||
currentDeviceMenu = deviceMenuButtons.length < 1 ? null : (
|
currentDeviceMenu = deviceMenuButtons.length < 1 ? null : (
|
||||||
<div className="device-menu">
|
<div className="device-menu">
|
||||||
|
Loading…
Reference in New Issue
Block a user