From cbcf282ca328dd7c6a44898838daadb62a39d8a8 Mon Sep 17 00:00:00 2001 From: "theis.gaedigk" Date: Tue, 19 Aug 2025 21:26:48 +0200 Subject: [PATCH] removed unnesesarry function --- frontend/src/components/Form2.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/frontend/src/components/Form2.tsx b/frontend/src/components/Form2.tsx index 65d7cfe..5583006 100644 --- a/frontend/src/components/Form2.tsx +++ b/frontend/src/components/Form2.tsx @@ -13,12 +13,6 @@ interface BorrowItem { const LOCAL_STORAGE_KEY = "borrowableItems"; -const isBorrowItem = (v: any): v is BorrowItem => - v && - typeof v.id === "number" && - (typeof v.item_name === "string" || typeof v.name === "string") && - (typeof v.can_borrow_role === "string" || typeof v.role === "string"); - function normalizeBorrowable(data: any): BorrowItem[] { const rawArr = Array.isArray(data) ? data