Skip to content

Commit 52af524

Browse files
authored
Merge pull request #1540 from bcgov/fix/referencebug
reference mapper issue
2 parents e2ea834 + 8befcdb commit 52af524

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ECER.Resources.Documents/PortalInvitations/PortalInvitationRepositoryMapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ public PortalInvitationMapper()
2828

2929
private static InviteType? DetermineInviteType(ecer_PortalInvitation source)
3030
{
31-
if (string.IsNullOrEmpty(source.ecer_WorkExperienceReferenceIdName))
31+
if (source.ecer_WorkExperienceReferenceId != null)
3232
{
3333
return InviteType.WorkExperienceReference;
3434
}
35-
else if(string.IsNullOrEmpty(source.ecer_CharacterReferenceIdName))
35+
else if(source.ecer_CharacterReferenceId != null)
3636
{
3737
return InviteType.CharacterReference;
3838
}

0 commit comments

Comments
 (0)