Skip to content

Commit

Permalink
fix(schema): firstName is name
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavovalverde committed Jul 23, 2023
1 parent a4ddc6c commit 2b25a87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ export const VALIDATE_PASSWORD_ERROR =
export const CREATE_IDENTITY_ERROR =
'Ha ocurrido un error intentando crear la cuenta ciudadana. Por favor, inténtelo más tarde.';
export const NON_ACCEPTED_TERMS_AND_CONDS_ERROR =
'Para continuar, debe leer y aceptar los términos y políticas de privacidad.';
'Para continuar, debe leer y aceptar los términos y políticas de privacidad.';
5 changes: 3 additions & 2 deletions src/pages/register/stepper/step3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ export default function Step3({ handleNext, infoCedula }: any) {
(n: any) => n.attributes['name'] === 'csrf_token'
);
const csrf_token = node?.attributes.value as string;
const surname = `${citizen.firstSurname} ${citizen.secondSurname}`;
// TODO: We need this later for `metadata_public` object
// const surname = `${citizen.firstSurname} ${citizen.secondSurname}`;
const method = 'password';

const updateRegistrationFlowBody: UpdateRegistrationFlowBody = {
Expand All @@ -137,7 +138,7 @@ export default function Step3({ handleNext, infoCedula }: any) {
emails: [form.email],
cedula: citizen.id,
shortName: {
firstName: citizen.firstName,
firstName: citizen.name,
firstSurname: citizen.firstSurname,
},
},
Expand Down

0 comments on commit 2b25a87

Please sign in to comment.