diff --git a/packages/suite/src/views/settings/SettingsGeneral/EnableViewOnly.tsx b/packages/suite/src/views/settings/SettingsGeneral/EnableViewOnly.tsx index 84553ac260e..bfdb4ceea30 100644 --- a/packages/suite/src/views/settings/SettingsGeneral/EnableViewOnly.tsx +++ b/packages/suite/src/views/settings/SettingsGeneral/EnableViewOnly.tsx @@ -6,10 +6,12 @@ import { TextColumn, Translation, } from 'src/components/suite'; -import { useDispatch } from 'src/hooks/suite'; +import { useDevice, useDispatch } from 'src/hooks/suite'; export const EnableViewOnly = () => { const dispatch = useDispatch(); + const { device } = useDevice(); + const handleSwitchDeviceClick = () => dispatch( goto('suite-switch-device', { @@ -19,6 +21,8 @@ export const EnableViewOnly = () => { }), ); + const isDeviceConnected = device?.connected && device?.available; + return ( { description={} /> - +