Skip to content

Commit

Permalink
fix(application-estate): Fix phone/email mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
kksteini committed Aug 30, 2024
1 parent c9faaea commit 6412590
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,22 @@ export const getFakeEstateInfo = (
name: 'Gervimaður Afríka',
relation: 'Sonur',
nationalId: '0101303019',
email: 'fake@email.com',
phone: '9999999',
},
{
name: 'Gervimaður Færeyjar',
relation: 'Maki',
nationalId: '0101302399',
email: 'fake2@email.com',
phone: '9999998',
},
{
name: 'Gervimaður Bretland',
relation: 'Faðir',
nationalId: '0101304929',
email: 'fake3@email.com',
phone: '9999997',
},
],
caseNumber: `2020-00012${nationalIdOfDeceased.slice(-4)}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const estateMemberMapper = (element: EstateMember) => {
...element,
initial: true,
enabled: true,
phone: '',
email: '',
phone: element.phone ?? '',
email: element.email ?? '',
relationWithApplicant: '',
noContactInfo: ['No'] as ('Yes' | 'No')[],
advocate: element.advocate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const generateRandomHeir = (
}
: {}),
email: name.split(' ').at(-1) + '@gervimadur.com',
phone: '9999999',
enabled: true,
relationWithApplicant: ['Bróðir', 'Systir', 'Móðir', 'Faðir'].sort(
() => 0.5 - Math.random(),
Expand Down

0 comments on commit 6412590

Please sign in to comment.