diff --git a/apps/rebreak-native/stores/protectedDevices.ts b/apps/rebreak-native/stores/protectedDevices.ts index db96f3b..7b07754 100644 --- a/apps/rebreak-native/stores/protectedDevices.ts +++ b/apps/rebreak-native/stores/protectedDevices.ts @@ -36,8 +36,8 @@ export const useProtectedDevicesStore = create((set, get) load: async () => { set({ loading: true }); try { - const res = await apiFetch('/api/devices/protected'); - set({ devices: Array.isArray(res) ? res : [] }); + const res = await apiFetch<{ devices?: ProtectedDevice[] }>('/api/devices/protected'); + set({ devices: Array.isArray(res?.devices) ? res.devices : [] }); } catch { // endpoint might not be ready yet — keep empty state, screen handles it } finally {