Skip to content

Commit f701bdd

Browse files
committed
fix: negate if condition
1 parent 765b859 commit f701bdd

File tree

1 file changed

+3
-1
lines changed
  • packages/uhk-web/src/app/store/effects

1 file changed

+3
-1
lines changed

packages/uhk-web/src/app/store/effects/device.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import {
1616
shouldUpgradeAgent,
1717
shouldUpgradeFirmware,
1818
UdevRulesInfo,
19+
UHK_60_DEVICE,
20+
UHK_60_V2_DEVICE,
1921
UHK_80_DEVICE,
2022
UserConfiguration
2123
} from 'uhk-common';
@@ -118,7 +120,7 @@ export class DeviceEffects {
118120
ofType(ActionTypes.CheckAreHostConnectionsPaired, DongleActions.DonglePairingSuccess),
119121
withLatestFrom(this.store.select(getConnectedDevice), this.store.select(getHostConnections)),
120122
tap(([_, connectedDevice, hostConnections]) => {
121-
if (connectedDevice?.id !== UHK_80_DEVICE.id) {
123+
if (connectedDevice?.id === UHK_60_DEVICE.id || connectedDevice?.id === UHK_60_V2_DEVICE.id) {
122124
return
123125
}
124126

0 commit comments

Comments
 (0)