Skip to content

Commit 9d774b2

Browse files
committed
frontend: toggle Bluetooth only on non-IOS devices
1 parent 90772b6 commit 9d774b2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

frontends/web/src/routes/settings/bb02-settings.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import { useState, useEffect } from 'react';
1818
import { useLoad } from '@/hooks/api';
1919
import { useTranslation } from 'react-i18next';
20+
import { runningInIOS } from '@/utils/env';
2021
import { GuideWrapper, GuidedContent, Header, Main } from '@/components/layout';
2122
import { ViewContent, View } from '@/components/view/view';
2223
import { WithSettingsTabs } from './components/tabs';
@@ -108,7 +109,6 @@ const Content = ({ deviceID }: TProps) => {
108109
return;
109110
}
110111
setDeviceInfo(result.deviceInfo);
111-
console.log('LOL', result);
112112
})
113113
.catch(console.error);
114114
}, [deviceID, t]);
@@ -161,8 +161,7 @@ const Content = ({ deviceID }: TProps) => {
161161
{ deviceInfo && deviceInfo.bluetooth ? (
162162
<div className={styles.section}>
163163
<SubTitle className={styles.withMobilePadding}>Bluetooth</SubTitle>
164-
<BluetoothToggleEnabledSetting
165-
deviceID={deviceID} />
164+
{ !runningInIOS() ? <BluetoothToggleEnabledSetting deviceID={deviceID} /> : null }
166165
<BluetoothFirmwareSetting
167166
firmwareVersion={deviceInfo.bluetooth.firmwareVersion}
168167
/>

0 commit comments

Comments
 (0)