Hide devices with unknown board type in DIY firmware tool (#1718)

This commit is contained in:
Sapphire
2026-01-22 17:14:12 -06:00
committed by GitHub
parent e0838cce6c
commit 1df3c9d322

View File

@@ -231,7 +231,10 @@ function OTADevicesList({
const allDevices = useAtomValue(devicesAtom);
const devices =
allDevices.filter(({ trackers }) => {
allDevices.filter(({ hardwareInfo, trackers }) => {
// filter out devices we can't update
if (!hardwareInfo?.officialBoardType) return false;
// if the device has no trackers it is prob misconfigured so we skip for safety
if (trackers.length <= 0) return false;