File tree Expand file tree Collapse file tree
packages/uhk-web/src/app/store/effects Expand file tree Collapse file tree Original file line number Diff line number Diff 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' ;
@@ -116,8 +118,12 @@ export class DeviceEffects {
116118 checkAreHostConnectionsPaired$ = createEffect ( ( ) => this . actions$
117119 . pipe (
118120 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+
121127 const addresses = [ ] ;
122128 for ( const hostConnection of hostConnections ) {
123129 if ( hostConnection . hasAddress ( ) ) {
You can’t perform that action at this time.
0 commit comments