File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
frontends/web/src/routes/device/bitbox01/settings Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import { route } from '../../../../utils/route';
21
21
import { getDeviceInfo } from '../../../../api/bitbox01' ;
22
22
import { apiGet } from '../../../../utils/request' ;
23
23
import { apiWebsocket } from '../../../../utils/websocket' ;
24
+ import { hasMobileChannel } from '@/api/devices' ;
24
25
import { Guide } from '../../../../components/guide/guide' ;
25
26
import { Entry } from '../../../../components/guide/entry' ;
26
27
import { Header } from '../../../../components/layout' ;
@@ -79,7 +80,7 @@ class Settings extends Component {
79
80
}
80
81
} ) ;
81
82
82
- apiGet ( 'devices/' + this . props . deviceID + '/has-mobile-channel' ) . then ( mobileChannel => {
83
+ hasMobileChannel ( this . props . deviceID ) . then ( mobileChannel => {
83
84
this . setState ( { mobileChannel } ) ;
84
85
} ) ;
85
86
You can’t perform that action at this time.
0 commit comments