diff --git a/internal_frontend/services/customers/usecases/validateCustomer.ts b/internal_frontend/services/customers/usecases/validateCustomer.ts index 5de1984..abcd497 100644 --- a/internal_frontend/services/customers/usecases/validateCustomer.ts +++ b/internal_frontend/services/customers/usecases/validateCustomer.ts @@ -11,5 +11,9 @@ export async function validateCustomer(input: { zip: string; city: string; }): Promise { + if (Object.values(input).every(value => !value?.trim())) { + return []; + } + return await callApi(customerRoutes.validate, "POST", input); } \ No newline at end of file