Skip to content

Commit

Permalink
Update libs/application/ui-components/src/components/NationalIdWithNa…
Browse files Browse the repository at this point in the history
…me/NationalIdWithName.tsx


Add suggestion from jonni

Co-authored-by: Jónas G. Sigurðsson <[email protected]>
  • Loading branch information
norda-gunni and jonnigs authored Dec 16, 2024
1 parent eb76670 commit 81d4d45
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ export const NationalIdWithName: FC<
: getValueViaPath(application.answers, nameField, '')
const defaultPhone = phoneDefaultValue
? phoneDefaultValue
: getValueViaPath(application.answers, phoneField, '')
: getValueViaPath<string>(application.answers, phoneField, '')
const defaultEmail = emailDefaultValue
? emailDefaultValue
: getValueViaPath(application.answers, emailField, '')
: getValueViaPath<string>(application.answers, emailField, '')

// query to get name by national id
const [getIdentity, { data, loading: queryLoading, error: queryError }] =
Expand Down

0 comments on commit 81d4d45

Please sign in to comment.