From addff16a767112bb53256c5a3c54be1de3159ef2 Mon Sep 17 00:00:00 2001 From: Pascal Pickel Date: Fri, 19 Apr 2024 13:56:31 +0200 Subject: [PATCH] fix: disable when no device --- src/features/ImeiProgramming/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/ImeiProgramming/index.tsx b/src/features/ImeiProgramming/index.tsx index cc58fc5f..85108225 100644 --- a/src/features/ImeiProgramming/index.tsx +++ b/src/features/ImeiProgramming/index.tsx @@ -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' : '' }