diff --git a/app/(app)/clients/new.tsx b/app/(app)/clients/new.tsx index 1e4132a..85409dc 100644 --- a/app/(app)/clients/new.tsx +++ b/app/(app)/clients/new.tsx @@ -135,9 +135,9 @@ export default function NewClientScreen() { firstName: firstName.trim(), lastName: lastName.trim(), phone: phone.trim(), - ...(email.trim() ? { email: email.trim() } : {}), - ...(address.trim() ? { address: address.trim() } : {}), - ...(areaId ? { areaId } : {}), + address: address.trim() || '—', // API requires non-empty address + ...(email.trim() ? { email: email.trim() } : {}), + ...(areaId ? { areaId } : {}), }); const client = clientRes.data; diff --git a/app/(app)/tasks/[id].tsx b/app/(app)/tasks/[id].tsx index 96fb297..bce78ed 100644 --- a/app/(app)/tasks/[id].tsx +++ b/app/(app)/tasks/[id].tsx @@ -67,6 +67,7 @@ export default function TicketDetailScreen() { const { data: ticket, isLoading, refetch } = useQuery({ queryKey: ['task', id], queryFn: () => api.get(`/api/v1/tickets/${id}`).then(r => r.data), + staleTime: 0, }); // Fetch client with subscriptions when ticket loads (for prepaid gate)