Skip to content

Commit

Permalink
Fix error ved alder utledning
Browse files Browse the repository at this point in the history
#deploy-test-frontend
  • Loading branch information
stigus committed Nov 18, 2024
1 parent 26d7fb2 commit 40938b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dolly-frontend/src/main/js/src/ducks/fagsystem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ const getPdlIdentInfo = (ident, bestillingStatuser, pdlData) => {
const mellomnavn = navn?.mellomnavn ? `${navn.mellomnavn.charAt(0)}.` : ''
const kjonn = person.kjoenn[0] ? getKjoenn(person.kjoenn[0].kjoenn) : 'U'
const alder = getAlder(
person.foedselsdato[0]?.foedselsdato || person.foedsel[0]?.foedselsdato,
person.doedsfall[0]?.doedsdato,
person.foedselsdato?.[0]?.foedselsdato || person?.foedsel?.[0]?.foedselsdato,
person.doedsfall?.[0]?.doedsdato,
)

return {
Expand Down

0 comments on commit 40938b9

Please sign in to comment.