From facba7b05b20bce744280b5e68122a72a3db032b Mon Sep 17 00:00:00 2001 From: jonny paulino Date: Fri, 3 Jan 2025 12:39:47 -0300 Subject: [PATCH] fix: update status registration --- src/Services/PreRegistration/request.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/PreRegistration/request.tsx b/src/Services/PreRegistration/request.tsx index 887b961..78010f2 100644 --- a/src/Services/PreRegistration/request.tsx +++ b/src/Services/PreRegistration/request.tsx @@ -40,7 +40,7 @@ export const requestRegistrationClassroom = (data: CreateRegistrationClassroomTy export const requestUpdateRegistration = (data: any, id: number) => { - const body = { ...data, color_race: data.color_race?.id, sex: data.sex?.id, deficiency: data.deficiency.id, status: data.status?.id, state_fk: data.state, city_fk: data.city, cep: data.cep.replace(/[^a-zA-Z0-9 ]/g, '') } + const body = { ...data, color_race: data.color_race?.id, sex: data.sex?.id, deficiency: data.deficiency.id, status: data.status?.id, state_fk: data.state, city_fk: data.city, cep: data?.cep?.replace(/[^a-zA-Z0-9 ]/g, '') } delete body.city