Skip to content

Commit

Permalink
refactor: simplify calculation of last names
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyArt1 committed Apr 25, 2024
1 parent b5e67a7 commit 61226ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/[lang]/register/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ export function Form({ cedula }: Props) {
username: citizen.id,
name: {
first: citizen.names,
last: `${citizen.firstSurname ?? ''}
${citizen.secondSurname ?? ''}`,
last: [citizen.firstSurname, citizen.secondSurname].join(' '),
},
birthdate: citizen.birthDate,
gender: citizen.gender,
Expand Down

0 comments on commit 61226ec

Please sign in to comment.