Skip to content

Commit

Permalink
fix(application-aod): Fix expander for firearm data to sysl (#15862)
Browse files Browse the repository at this point in the history
* fix(application-aod): Fix expander for firearm data to sysl

* Update libs/application/template-api-modules/src/lib/modules/templates/announcement-of-death/announcement-of-death.service.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
kksteini and coderabbitai[bot] authored Sep 3, 2024
1 parent 3cc8b76 commit 5786cb9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
} from '@island.is/clients/syslumenn'
import {
Answers as aodAnswers,
FirearmApplicant,
PropertiesEnum,
} from '@island.is/application/templates/announcement-of-death/types'
import { NationalRegistry, RoleConfirmationEnum, PickRole } from './types'
Expand Down Expand Up @@ -226,7 +227,12 @@ export class AnnouncementOfDeathService extends BaseTemplateApiService {
firearm:
answers.hadFirearms === YES
? JSON.stringify(answers.firearmApplicant)
: '',
: JSON.stringify({
email: '',
phone: '',
name: '',
nationalId: '',
}),
bankcodeSecuritiesOrShares: otherProperties.includes(
PropertiesEnum.ACCOUNTS,
)
Expand Down

0 comments on commit 5786cb9

Please sign in to comment.