Skip to content

Commit

Permalink
Update plugin-hrm-form/src/components/caseMergingBanners/ContactAdded…
Browse files Browse the repository at this point in the history
…ToCaseBanner.tsx


refactor null guard

Co-authored-by: Stephen Hand <steveh@techmatters.org>
  • Loading branch information
acedeywin and stephenhand authored Dec 14, 2023
1 parent 018ca6e commit 8c83467
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type Props = OwnProps & ReturnType<typeof mapStateToProps> & ReturnType<typeof m
const mapStateToProps = (state: RootState, { taskId }: OwnProps) => {
const contact = selectContactByTaskSid(state, taskId);
const caseId = contact?.savedContact?.caseId;
const connectedCase = state[namespace].activeContacts?.caseConnectedToContact[contact.savedContact.id];
const connectedCase = state[namespace].activeContacts.caseConnectedToContact[contact?.savedContact?.id];
return {
contact: contact.savedContact,
connectedCase,
Expand Down

0 comments on commit 8c83467

Please sign in to comment.