diff --git a/src/components/book-out/BookOutForm.tsx b/src/components/book-out/BookOutForm.tsx index ba3feaf..1f348b6 100644 --- a/src/components/book-out/BookOutForm.tsx +++ b/src/components/book-out/BookOutForm.tsx @@ -90,7 +90,7 @@ export function BookOutForm({ setOpen, refreshData }: BookOutFormProps) { }); const formattedCustomers: Customer[] = records.items.map((item: any) => ({ id: item.id, - name: item.company_name, // Assuming 'company_name' is the field for customer name in PocketBase + name: item.comapny_name, // Corrected to use 'comapny_name' from PocketBase schema })); setCustomers(formattedCustomers); } catch (error) {