diff --git a/app/costumer-form/[id]/page.tsx b/app/customer-form/[id]/page.tsx similarity index 100% rename from app/costumer-form/[id]/page.tsx rename to app/customer-form/[id]/page.tsx diff --git a/app/costumer-form/page.tsx b/app/customer-form/page.tsx similarity index 98% rename from app/costumer-form/page.tsx rename to app/customer-form/page.tsx index 6839057..65b0924 100644 --- a/app/costumer-form/page.tsx +++ b/app/customer-form/page.tsx @@ -32,7 +32,9 @@ export default function Modules() { (async () => { const response = await axios.get('/api/protected/customer-form'); - const validatedResponse = CustomerFormListSchema.safeParse(response.data); + const validatedResponse = CustomerFormListSchema.safeParse( + response.data.data + ); if (!validatedResponse.success) { console.error(validatedResponse.error);