Skip to content

Commit

Permalink
fix: disable when no device
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Pickel authored and Pascal Pickel committed Apr 22, 2024
1 parent df534fa commit addff16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/ImeiProgramming/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,9 @@ export default () => {
setStatus(await getStatus(device, deviceInfo));
});
}}
disabled={!isMaybeSupportedDevice(deviceInfo)}
disabled={!deviceInfo || !isMaybeSupportedDevice(deviceInfo)}
title={
!isMaybeSupportedDevice(deviceInfo)
!deviceInfo || !isMaybeSupportedDevice(deviceInfo)
? 'Device not supported'
: ''
}
Expand Down

0 comments on commit addff16

Please sign in to comment.