File tree 1 file changed +8
-2
lines changed
packages/uhk-web/src/app/store/effects
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ import {
16
16
shouldUpgradeAgent ,
17
17
shouldUpgradeFirmware ,
18
18
UdevRulesInfo ,
19
+ UHK_60_DEVICE ,
20
+ UHK_60_V2_DEVICE ,
19
21
UHK_80_DEVICE ,
20
22
UserConfiguration
21
23
} from 'uhk-common' ;
@@ -116,8 +118,12 @@ export class DeviceEffects {
116
118
checkAreHostConnectionsPaired$ = createEffect ( ( ) => this . actions$
117
119
. pipe (
118
120
ofType ( ActionTypes . CheckAreHostConnectionsPaired , DongleActions . DonglePairingSuccess ) ,
119
- withLatestFrom ( this . store . select ( getHostConnections ) ) ,
120
- tap ( ( [ _ , hostConnections ] ) => {
121
+ withLatestFrom ( this . store . select ( getConnectedDevice ) , this . store . select ( getHostConnections ) ) ,
122
+ tap ( ( [ _ , connectedDevice , hostConnections ] ) => {
123
+ if ( connectedDevice ?. id === UHK_60_DEVICE . id || connectedDevice ?. id === UHK_60_V2_DEVICE . id ) {
124
+ return
125
+ }
126
+
121
127
const addresses = [ ] ;
122
128
for ( const hostConnection of hostConnections ) {
123
129
if ( hostConnection . hasAddress ( ) ) {
You can’t perform that action at this time.
0 commit comments