We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9810755 commit 1720c8aCopy full SHA for 1720c8a
src/lib/seam/components/DeviceDetails/LockDeviceDetails.tsx
@@ -127,16 +127,17 @@ export function LockDeviceDetails(
127
<span className='seam-value'>{lockStatus}</span>
128
</div>
129
<div className='seam-right'>
130
- {disableLockUnlock !== true && (
131
- <Button
132
- size='small'
133
- onClick={() => {
134
- toggleLock.mutate()
135
- }}
136
- >
137
- {toggleLockLabel}
138
- </Button>
139
- )}
+ {disableLockUnlock !== true &&
+ device.capabilities_supported.includes('lock') && (
+ <Button
+ size='small'
+ onClick={() => {
+ toggleLock.mutate()
+ }}
+ >
+ {toggleLockLabel}
+ </Button>
140
+ )}
141
142
143
<AccessCodeLength
0 commit comments