Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
TrezorConnect.on(DEVICE_EVENT, (event: any) => {
switch (event.type) {
case DEVICE.DISCONNECT: {
logout();
break;
}
default:
break;
}
});
TrezorConnect.on(DEVICE_EVENT, event => {
switch (event.type) {
case DEVICE.DISCONNECT: {
logout();
break;
}
default:
break;
}
});